Hmmmm assuming that constraint/index on :Page(node) is up and online, will 
the following query make any difference?

How does execution time change in case you run this say 5 times in a row 
with the same n1 & n2 values?

query = neo4j.CypherQuery(
 graph_db, 
 """MATCH (m:Page {node:{n1}})
    USING INDEX m:Page(node)
    WITH m
    MATCH (n:Page {node:{n2}}), p = shortestPath((m)-[*..20]->(n))
    USING INDEX n:Page(node)
    RETURN p"""
)
query.execute(n1=node1, n2=node2)

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to