IT lexicon › Database › Transaction Isolation

Transaction Isolation

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

The degree to which a transaction is protected from interference by simultaneous transactions — ranging from none at all to complete serialization.

With multiple users running simultaneously, race conditions emerge: two transactions read the same row, both modify it, both write back — one change vanishes. SQL defines four isolation levels: READ UNCOMMITTED (no protection), READ COMMITTED (read only finished changes), REPEATABLE READ (lock the rows I read), and SERIALIZABLE (lock everything I might touch). Higher levels are safer but slower. The choice is usually a tradeoff between data correctness and throughput.

This problem surfaced in the 1970s and remains notoriously hard to get right.

← Back to the lexicon