I am using Neo4j in embedded mode in my java application.
Before upgrading to Neo4j 2.x, I was wrapping multiple db operations in one transaction. After upgrading to 2.x, I am explicitly performing each db operation in one separate transaction (this is the canonical way, as documentation also suggests). However, the speed of creating database has severely decreased.
Is there a way, I can wrap multiple db operations (both insert and query) in one transaction? I do understand that in case of rollback I will have to deal with lost CRUD operations.
Please also pour in general recommendations to scale a database that will eventually have over 600 million nodes and relationships and over 2 billion annotations.