Skip to content

A hand coded implementation for queries in TPC-H benchmark

Notifications You must be signed in to change notification settings

zz-jason/Hand-Coded-TPCH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hand-Coded-TPCH

A hand coded program can use the most efficient methods to gain the fastest query running speed, thus we can know the performance gap between current TiDB and the ideal database implementations.

1. How To Generate csv files for every table

git clone https://github.com/pingcap/tidb-bench.git
cd tidb-bench/tpch
make tbl

the last command will generate 1 csv file for 1 table:

➜ ls -l *.tbl
-rw-r--r--  1 jianzhang.zj  staff   24346144 Mar 30 21:55 customer.tbl
-rw-r--r--  1 jianzhang.zj  staff  759863287 Mar 30 21:55 lineitem.tbl
-rw-r--r--  1 jianzhang.zj  staff       2224 Mar 30 21:55 nation.tbl
-rw-r--r--  1 jianzhang.zj  staff  171952161 Mar 30 21:55 orders.tbl
-rw-r--r--  1 jianzhang.zj  staff   24135125 Mar 30 21:55 part.tbl
-rw-r--r--  1 jianzhang.zj  staff  118984616 Mar 30 21:55 partsupp.tbl
-rw-r--r--  1 jianzhang.zj  staff        389 Mar 30 21:55 region.tbl
-rw-r--r--  1 jianzhang.zj  staff    1409184 Mar 30 21:55 supplier.tbl

The defailt scale factor is 1, to generate a larger csv file, take a look at Makefile for more details.

2. What execution models can we consider

2.1 Hyper

2.2 Vectorwise

2.3 Peloton

About

A hand coded implementation for queries in TPC-H benchmark

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published