Skip to content
Commitwise
Menu

MVCC

Also called: Multi-version concurrency control

Multi-version concurrency control: writers create new row versions so readers never wait for them.

Definition

Each transaction reads a consistent snapshot of the data. An UPDATE writes a new version of the row instead of overwriting it, so a concurrent reader keeps seeing the old one. Old versions are cleaned up later (VACUUM in PostgreSQL, purge in InnoDB). Long-running transactions keep old versions alive and cause table bloat.

In practice

A 10-minute report reads orders while checkouts keep updating them; neither blocks the other.

Learn it in context

Lessons that use this term.

Related terms

Esc

Type to search the whole site.