Problem Statement
What is the core idea of MVCC (Multi-Version Concurrency Control)?
Explanation
MVCC keeps past versions long enough to serve a snapshot consistent with each transaction’s view. Readers do not wait for writers and vice versa in common cases.
Engines must vacuum or purge dead versions to reclaim space and control index bloat.
Code Solution
SolutionRead Only
START TRANSACTION; -- snapshot is taken here SELECT * FROM orders WHERE id=10;
Practice Sets
This question appears in the following practice sets:
