Concurrency Control
- Concurrency Control test cases
- MVCC designs evaluated
- Description of InnoDB’s MVCC system
- Pavlo course slides
- Nice blog post about TSO protocols
- From TUM
- Textbook on MVTO
Deuteronomy - multiversion TSO with phantom protection:
- Deuteronomy: Transaction Support for Cloud Data (CIDR 2015)
- High Performance Transactions in Deuteronomy (VLDB)
Cicada has a very clever MVTSO scheme that stores TSO timestamps on their carefully designed index nodes to prevent phantoms. Seems like a very low-contention strategy, and also potentially relatively easy to implement.
See some nice detail: “As a common performance optimization, Cicada does not validate read-only accesses to internal index nodes because validating leaf index nodes that are responsible for holding index key-value pairs suffices for phantom avoidance. Temporary structural inconsistencies are mitigated by using sibling pointers, similarly to Blink-tree”
From a textbook:
Solution 1: A transaction is structured such that its writes are all performed at the end of its processing. All writes of a transaction form an atomic action; no transaction may execute while a transaction is being written. A transaction that aborts is restarted with a new timestamp.
Solution 2: Limited form of locking: wait for data to be committed before reading it
Solution 3: Use commit dependencies to ensure recoverability
Another possibility for phantom protection is HyPeR’s predicate locking.
- Some interesting analysis of subtle engineering details of implementation
- Older paper which includes an MVTO algo
- Ditto