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.

Releasing automatically acquired write locks before transaction commit

When a node or relationship is written Neo4j automatically acquires a write lock on that graph element. Additionally, one can explicitly acquire read and write locks on graph elements.

All locks acquired by a transaction are automatically released on commit or rollback. Explicitly acquired locks may be released before transaction commit or failure using API calls. Is it possible to release automatically acquired write locks before transaction commit/failure? This might be useful when a write that has been performed within the transaction has been reversed by another write within the same transaction.

If this is not possible, would it be possible to explicitly acquire write locks on elements before performing writes on them, preventing Neo4j from acquiring automatic write locks on them and allowing the release of those explicitly acquired locks before commit/failure?

0 REPLIES 0