~/talk

Locking And Concurrency Control

Talkat PHP UK Conference 2014 · 2014-02-21..02-22· [databases]
links:none on file
slides:none on file

Explains what actually happens inside MySQL 5.6: InnoDB MVCC keeps per-row transaction IDs and undo chains so readers see a single point-in-time view while writers proceed; table-level dumps lock everything. Demonstrates deadlocks, 50 second lock wait timeouts, and that deadlock detection kills the transaction that modified the fewest rows. Covers isolation levels (read uncommitted, read committed, repeatable read, serializable), row-based vs statement-based replication, binary logging on commit, and practical retry or error-handling strategies for applications.

AI-written summary · about

  1. 0:00Introduction
  2. 1:15Upcoming features
  3. 2:26Agenda
  4. 2:59Table Locks
  5. 6:06Backups
  6. 7:40mysqldump
  7. 9:04backup
  8. 10:10multiversion concurrency
  9. 10:39demo
  10. 21:21answer
  11. 22:16shared locking
  12. 22:36interactive session
  13. 22:49deadlock
  14. 23:21lockweight
  15. 23:59deadlock detection
  16. 24:23potential solutions
  17. 24:41isolation lock step
  18. 26:24scalability
  19. 27:27optimistic vs pessimistic concurrency
  20. 28:13database errors
  21. 29:07deadlocking
  22. 29:26error handling
  23. 31:40Atomicity
  24. 32:31Consistency
  25. 33:10Isolation
  26. 36:36Buffers
  27. 37:38Summary
  28. 38:01Application Responsibilities
  29. 38:38Internal Locks
  30. 38:51Multiple Servers
  31. 41:15Serializable
  32. 43:09Raw Metadata
  33. 47:46Repeatable Reads
  34. 48:15Triggers
  35. 50:22Internal Locking
  36. 51:12Memory Locking
  37. 51:24Pages
  38. 51:35Thread deadlocks
  39. 52:02Mutex concurrency
  40. 52:48Hot locks
  41. 53:20Lock vs Mutex
  42. 54:34Diagnosis
  43. 56:43How do locks work
~/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.