We are using Neo4j Enterprise edition for Causal Clustering. There are 3 core nodes and 3 replica nodes.
Is it necessary that Session be closed explicitly for data to be visible in the neo4j database. I am creating close to 20K transactions (each of them creating one node) in each session with each transaction being explicitly calling success();
I have observed that unless the session is terminated, data is not visible in the Neo4J graph (browser) and also from Neo4j shell.
Am I doing something wrong? I wish that since each transaction is followed by success() method explicitly, I should be able to see the data as soon as success() is returned from the transaction.
Does Neo4J (bolt Driver) wait for the completion of the session before committing all transaction data in Graph? All these transactions are stand alone transactions having no relation to the previous or upcoming transaction?
Kindly enlighten.
It looks as if the transaction does not close automatically in the block
try catch
.You can manually close a transaction without closing the session: [ https://neo4j.com/docs/java-reference/current/javadocs/org/neo4j/graphdb/Transaction.html#close-- ]: