GithubHelp home page GithubHelp logo

yanghaomai / dst Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sjtu-ipads/dst

0.0 0.0 0.0 68.06 MB

A decentralized scalar timestamp scheme

License: Apache License 2.0

CMake 0.71% Python 0.69% Shell 0.53% C++ 66.99% C 19.30% Makefile 0.04% Perl 1.07% Roff 0.80% M4 0.01% Vim Script 0.01% Emacs Lisp 0.01% Java 4.36% CSS 3.07% HTML 0.34% Objective-C 0.64% Batchfile 0.01% Pascal 0.18% Assembly 0.04% PHP 0.55% NASL 0.67%

dst's Introduction

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.

dst's People

Contributors

realstolz avatar wxdwfc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.