Any query that updates the graph will run in a transaction. An updating query will always either fully succeed, or not succeed at all.
Cypher will either create a new transaction or run inside an existing one:
This can be used to have multiple queries be committed as a single transaction:
Note that a query will hold the changes in memory until the whole query has finished executing. A large query will consequently need a JVM with lots of heap space.
Copyright © 2013 Neo Technology