Andrew Kumansley

Concurrency Control

Deuteronomy - multiversion TSO with phantom protection:

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

  • TicToc
  • PLOR - an interesting hybrid scheme between 2PL and OCC

Another possibility for phantom protection is HyPeR’s predicate locking.