Giter Club home page Giter Club logo

jimouris / sigmod-contest-2015 Goto Github PK

View Code? Open in Web Editor NEW
6.0 5.0 1.0 33.06 MB

๐Ÿ–ฅ๏ธ ACM Sigmod 2015 Programming Contest. This repository handles concurrent reads and writes carefully in order to achieve the isolation principle of ACID.

Home Page: http://db.in.tum.de/sigmod15contest/task.html

License: MIT License

Makefile 1.53% C 91.02% Shell 7.45%
sigmod-programming-contest transaction-processing concurrent-queries sigmod

sigmod-contest-2015's Introduction

transaction-processing License MIT

ACM Sigmod 2015 Programming Contest

The ACID principle, mandating atomicity, consistency, isolation and durability is one of the cornerstones of relational database management systems. In order to achieve the third principle, isolation, concurrent reads and writes must be handled carefully.

In practice, transaction processing is often done in an optimistic fashion, where queries and statements are processed first, and only at the commit point the system validates if there was a conflict between readers and writers.

In this challenge, we simulate this in a slightly simplified way: The system processes already executed transactions and only needs to check efficiently whether concurrent queries conflict with them. So, in short: we issue a list of insert and delete statements and your program needs to figure out whether given predicates match the inserted or deleted data.

Website of the contest can be found here

This repository contains the approach on this project by Dimitris Mouris, Thanos Giannopoulos and Themis Beris.

Running

Runnig of the program is easy using the script provided.

./execute.sh

The above will run the program with the default input file (inputs/small.bin). It will also check if the output of the programm matches the output provided by the contest (using diff)

You can specify the input in the first arguement of the script, like:

./execute.sh input_file

After that can also follow some other options for using specific indexes, or enabling multihreaded functions.

Possible options are:
  1. [--tid enables indexing for transaction-ids using extendible hashing]
  2. [--predicate enables indexing for predicates using extendible hashing, to avoid computing the same values twice]
  3. [--threads t enables multithreaded validation check using t threads]
  4. [--rounds r evaluates and print validadations every r flushes]
  5. [--scheduler enables thread scheduler for assigning jobs to a thread pool]

Unfortunately, for the given inputs options 1,2 don't provide speedup due to the overhead of building the indexes. Also, regarding the multithreaded execution the scheduler doesn't provide a speedup either and the program runs faster with equal distribution of the validations to each thread.

Fastest Implementation:

./execute.sh input_file --threads 4

sigmod-contest-2015's People

Contributors

jimouris avatar thanosgn avatar themisb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

zhengtongyan

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.