Database Systems
Committing your transactions…
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Database Systems
Committing your transactions…
Multi-version concurrency control never overwrites a row. Every change adds a version, every transaction reads from its own snapshot, and readers and writers stop waiting for each other.
Click Play to begin.
Both hold for at most one version per row. Commit and abort only flip a status in the commit log — nothing in the table is rewritten — which is why they are cheap.
Question 1 of 3
Under MVCC, T1 has an uncommitted update on row A. What happens when T2 reads A?