cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Commiting a read only transaction

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.