【发布时间】:2017-02-01 05:09:12
【问题描述】:
我写了一个查询,它花费的时间比预期的要长。
g.V().hasLabel('Person').has('name','Person1').out('BELONGS').in('HAS').dedup().as('x').in('HAS').filter(__.in('HAS').has('name','App1')).store('y').select('x').dedup().in('HAS').hasLabel('Org').repeat(out()).until(outE().hasLabel('IS')).store('a').cap('y').unfold().in('HAS').hasLabel('Class').repeat(inE('IS').dedup().otherV()).until(inE('HAS')).where(within('a'))
我们可以做一个解释计划来看看是什么让这个查询变慢了吗?
问候
瓦伦塔欣
【问题讨论】:
标签: datastax-enterprise gremlin tinkerpop3 datastax-enterprise-graph