Snapshot Isolation and Write Skew
Follow a transaction’s stable snapshot and explain how two disjoint writes can combine into an invalid result.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Readers see one committed snapshot plus their own changes
A snapshot can be represented by versions visible at transaction start under the engine’s rules. Later commits then need not change what the transaction reads from that snapshot. Concurrent writers updating the same item encounter a write-conflict rule. These conditions support repeatable views without forcing every concurrent history into a serial one.
A constraint can cross write sets
Two transactions start with two active reviewers and each reads both. Each updates its own reviewer to inactive, relying on the other staying active. Under basic snapshot isolation, disjoint writes can both commit. The invariant requiring a remaining reviewer fails, and their precedence graph shows conflicting read–write order requirements. Multi-version concurrency control discusses serializable variants and dangerous dependency structures.[1][2]