Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa authored May 27, 2017
1 parent f40281e commit 97a63e3
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,28 @@
# TPCH-sqlite
SQLite TPCH database

This small shell script that generates an sqlite3 database following the [TPC-H standard](http://www.tpc.org/tpch/).
It uses the official [tpch-dbgen](https://github.com/electrum/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.

## 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
```

0 comments on commit 97a63e3

Please sign in to comment.