cancel
Showing results for 
Search instead for 
Did you mean: 

Releasing automatically acquired write locks before transaction commit

cdpm
Node

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
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.