Thanx Michael, your blog is excellent :)
I'm currently using 1.9, waiting the 2.0 but for the moment i focus on stable version.
I had understood the best practice was to use Cypher queries with parameters, using batch rest API.
But just to be sure I have well understood, because I loose my english sometimes :
try to bundle as many operations into as few Cypher statements or HTTP request as possible
I'm still wondering what is best ?
- a huge cypher query in 1 http request (using collection as you wrote, could be nice)
- many small cypher queries in 1 Rest-Batch-Operation
- quite huges cypher request in few operations in 1 Rest-Batch-Operation (between the 2 first solutions)
And moreover, if the first solution is the best, is there any limit to cypher query length ?
To update data with Cypher it is also necessary to take transaction size into account. For the embedded case, batching transactions is discussed in the next installment of this series. For the remote execution via the Neo4j REST API there are a few important things to remember. Especially with large index lookups and match results, it might happen that the query updates hundreds of thousands of elements
I think the Rest-Batch-Operation creates a single transaction, so transaction size account "problem" or "point" is the same for my 2 previous cases I guess, so does not help me to choose the good approach
Sorry if I misunderstood some points,
Thanks,
Jean