IT lexicon › Database › Row versioning

Row versioning

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

A concurrency technique storing multiple versions of the same row, allowing readers to see consistent snapshots without blocking writers.

Row versioning is the engine behind multiversion concurrency control (MVCC), popularized by PostgreSQL and later adopted by MySQL (InnoDB), SQLite, and Oracle. Each transaction works with a temporal snapshot and ignores changes from later transactions. Writers create new versions without blocking readers, yielding far higher parallelism than pessimistic locking.

The trade-off: old versions must be garbage-collected, and certain anomalies ("write skew") can still occur at weaker isolation levels. But for read-heavy workloads—web applications, OLTP systems—MVCC has become the standard for balancing safety and speed. It's a core reason modern databases handle 10× the concurrency their 1990s predecessors did.

← Back to the lexicon