IT lexicon › Database › Multiversion Concurrency Control

Multiversion Concurrency Control

Database På svenska → Updated: 2026-11-13

A concurrency technique where each transaction sees a consistent snapshot of the database from its start time.

Instead of blocking readers with locks, MVCC maintains multiple versions of data. A read-only transaction sees a snapshot from its start time, unaffected by concurrent writes. A write transaction creates a new version invisible to others until commit. PostgreSQL, MySQL (InnoDB), Oracle, and modern SQLite all use MVCC to permit readers and writers to run in parallel without blocking. This technique was a breakthrough for online transaction processing—you can now have dozens of long-running reports running alongside high-frequency transactional writes.

The tradeoff is extra disk usage for storing versions and background work to clean up obsolete versions.

← Back to the lexicon