~/talk

Concurrent Writes and Locking in Neo4j

Talkat NODES 2024 · on Thursday, 2024-11-07· [databases]
links:none on file
slides:none on file

Demonstrates Neo4j lock behavior with live Cipher shells, using apoc.util.sleep to simulate long transactions and showing that MERGE creates duplicates under concurrency because uncommitted changes aren’t visible to other transactions; only uniqueness constraints prevent duplicates. Shows locks taken on nodes, labels and relationship groups, that relationship MERGE acquires node locks while plain CREATE relationships can run concurrently with property updates in 5.23, and that default dbms.lock_acquisition_timeout = 0 (infinite) — changed to 5s in the demo. Tests include creating 50 relationships concurrently to show throughput.

AI-written summary · about

  1. 0:00Introduction and basics
  2. 1:31Transaction handling
  3. 3:40Demonstrating locking
  4. 6:12Merge and node concurrency
  5. 10:30Uniqueness constraints
  6. 12:23Updating properties and locks
  7. 13:49Label modification locks
  8. 15:32Data safety and errors
  9. 18:18Lock acquisition timeouts
  10. 20:04Relationship creation locks
  11. 23:16Strategies for parallel loads
  12. 26:01Advanced merge techniques
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.