Skip to content

Topic

Database locking

The row, gap and next-key locks a database takes to serialise concurrent access to records and index ranges, and the contention and deadlocks that follow from them.

Current clusters

build1 publisher

A FOR UPDATE clause moves a SELECT onto InnoDB's write path

InnoDB applies MVCC to reads and pure locking to writes, so under the default Repeatable Read the same predicate can be answered from a snapshot frozen at your first statement or from the newest committed row.

Publishers:dev.to

Reality

Evidence52
Adoption
Insufficient
Hype gap+8
Incentives25
Confidence45