How does Py2Neo use parameters to make repeat queries faster?

py2neo

(Benjamin Squire) #1

I am trying to make a simple API to interact with my database. Given input of an ID look up I want to return a subgraph of all related Ids. My question is how can I parameterize this in Py2Neo so I use the same query execution plan in Cache to speed up the API. I have seen how to do this in Cypher and Cypher-shell. Wondering what it takes to do this in Py2Neo..


(Michael Hunger) #2

There are several functions in py2neo that take a statement and parameters

e.g.


(Benjamin Squire) #3

Thanks for the explanation. Cheers.