~learn.
← all concepts

Optimistic locking.

also: optimistic concurrency control · pessimistic locking · SELECT FOR UPDATE · version check · compare-and-set · lost update · lost updates · lost-update problem

Read a row's version, then update only if the version is unchanged, retrying on conflict; pessimistic locking locks the row first.

the two-minute refresher

Where the course teaches it

W05 · Day 1Consistency Modelslearn it →

Related concepts