Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DST, a scalable and general purpose timestamp mechanism for MVCC

Multi-version concurrency control (MVCC) enables more concurrency control than traditional one-version concurrency control, such that reads operate concurrently to writes by reading from a consistent snapshot.

In MVCC, an import aspect is how to determine the version of tuple to read, and how to determine the version to write. On a single macine (or centralized database), this is pretty simple: one can use the global counter. However, in a

DST and its application to various database systems

DST is a timestamp mechanism to provide serializable snapshot read. It's basic idea is to piggyback timestamp selection based on transaction's original concurrency control, so that the timestamp selection can be freely tracked without accessing any centralized data structures.

DST is a general timestamp scheme that can be applied to various concurrency control protocols, including two-phase locking(2PL) and optimistic concurrency control(OCC), the most standard protocols for transaction. Below is a summary of which system (and their corresponding concurrency control protocols) DST applies to. Notice that the lines of code changed (LOC) only includes changes to concurrency control layers / data store, which does not include execution frameworks, or benchmark code.

Systems Codebase LOC changed Concurrency control protocol
DrTM DrTM 154 Optimistic concurrency control
MySQL cluster MySQL 222 Two-phase locking
ROCOCO ROCOCO 171 ROCOCO

Detailed results

The following is a detailed evaluation results of DST on different systems.

About

A decentralized scalar timestamp scheme

Resources

Stars

16 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages