2 ms·
I had a look into python client library for neo4j a year ago, and couldn't find a way to perform multiple graph writes in a single transaction, because the only
by bsaul 13y ago
I had a look into python client library for neo4j a year ago, and couldn't find a way to perform multiple graph writes in a single transaction, because the only API available was the http one. Has that changed since ?
- espeed 13y agoYou can use client-side or server-side Gremlin scripts for this... http://stackoverflow.com/questions/16759606/is-there-a-equivalent-to-commit-in-bulbs-framework-for-neo4j/16764036#16764036 http://stackoverflow.com/questions/16759606/is-there-a-equiv... Here's how to use server-side Gremlin scripts in Python with Rexster, which is TinkerPop's open-source server that runs multiple graph databases, including Neo4j... https://groups.google.com/d/topic/gremlin-users/Up3JQUwrq-A/discussion https://groups.google.com/d/topic/gremlin-users/Up3JQUwrq-A/...
- mhluongo 13y agoAs @espeed said, Gremlin will work (or just Groovy + the Java API). Cypher can handle this as of Neo4j 2.0 using the transactional endpoint. I'm not sure whether the old(er) batch HTTP endpoint kept the writes in one tx- I believe it did, though batching them in one HTTP call was frustrating.