Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1575

Improve use of Neo4j indicies for common searches

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Won't Do
    • 3.2.3
    • None
    • neo4j
    • 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

          Activity

            People

              colegreer Cole Greer
              bjmoor Branden Moore
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: