Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Won't Do
-
3.2.3
-
None
-
None
Description
When using a Neo4j-based graph, indicies are not used when more than one label is searched for.
gremlin> g.V().hasLabel("alpha").has("myProp", 10) Final Traversal [Neo4jGraphStep(vertex,[~label.eq(alpha),myProp.eq(10)]))] gremlin> g.V().hasLabel("alpha", "beta").has("myProp", 10) Final Traversal [Neo4jGraphStep(vertex,[~label.within(alpha,beta),myProp.eq(10)]))]
Another example where indices are not used:
g.V().hasLabel('person').has(objId,within('test1','test2'))
Attachments
Issue Links
- is duplicated by
-
TINKERPOP-2326 the query which contains the 'within' statement do not use the index, the query speed is too slower(in the neo4j-gremlin module)
- Closed