cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

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.