cancel
Showing results for 
Search instead for 
Did you mean: 

Commiting a read only transaction

shayantest2
Node Clone

In OGM, if I open a read only transaction:

Transaction tx = session.beginTransaction(Transaction.Type.READ_ONLY);

Should I commit it before closing?

1 ACCEPTED SOLUTION

You don't need to, but it can't hurt either. It makes it more explicit to clean up resources.

View solution in original post

1 REPLY 1

You don't need to, but it can't hurt either. It makes it more explicit to clean up resources.

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.