Git Product home page Git Product logo

tpch-sqlite's Introduction

TPCH-sqlite Build Status

This is a small shell script that generates an SQLite3 database following the TPC-H standard. It uses the official tpch-dbgen tool to generate the data, and then imports it into an sqlite database.

Download the database

If you don’t want to generate the database yourself, you can download it from the realeases section of this github repo.

  • TPC-H.db. This is a conforming TPC-H database with a scale factor of 1. The database file size is 1.17 GB.
  • TPC-H-small.db. This database does not conform to the standard, as it has a scale factor of 0.01, but it is much smaller: 11.6 MB.

How to use

Clone this repository and its submodule. Then just run make from the root directory of this repo. Be sure to have sqlite3 and a C compiler installed.

git clone --recursive [email protected]:lovasoa/TPCH-sqlite.git
cd TPCH-sqlite
make

This generates an SQLite3 database under the name TPC-H.db.

How to set a custom scale factor

By default, the database is generated with a scale factor of 1. You can set a different scale factor (SF) with

SCALE_FACTOR=10 make

tpch-sqlite's People

Contributors

lovasoa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.