SJTU-IPADS / dst

A decentralized scalar timestamp scheme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Apache License 2.0


Languages

Language:C++ 53.6%Language:JavaScript 19.4%Language:C 15.4%Language:Java 3.5%Language:CSS 2.5%Language:Perl 0.9%Language:Roff 0.6%Language:CMake 0.6%Language:Python 0.6%Language:NASL 0.5%Language:Objective-C 0.5%Language:PHP 0.4%Language:Shell 0.4%Language:Yacc 0.3%Language:HTML 0.3%Language:Less 0.3%Language:Pascal 0.1%Language:XSLT 0.0%Language:Assembly 0.0%Language:Makefile 0.0%Language:ActionScript 0.0%Language:DIGITAL Command Language 0.0%Language:SWIG 0.0%Language:Lex 0.0%Language:Awk 0.0%Language:RPC 0.0%Language:M4 0.0%Language:Batchfile 0.0%Language:Emacs Lisp 0.0%Language:GAP 0.0%Language:Vim Script 0.0%Language:POV-Ray SDL 0.0%Language:SAS 0.0%Language:Module Management System 0.0%Language:Ruby 0.0%Language:Pawn 0.0%Language:PLSQL 0.0%Language:VBA 0.0%Language:Dockerfile 0.0%Language:SourcePawn 0.0%