GithubHelp home page GithubHelp logo

interma / itpch Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 126 KB

interma's tpch test for greenplum

License: Apache License 2.0

C 88.93% Shell 4.12% Perl 3.41% Makefile 3.53%
greenplum-database tpch

itpch's Introduction

iTPCH

interma's tpch test for greenplum

It used for a personal test env with small Scale Factor (e.g. 100).

Guides:

cd dbgen

# 01 compile dbgen
make

# 02 generate raw data (1GB)
./dbgen -vf -s 1
# and remove ending |
sed -i -e "s/|$//g" *.tbl

# 03 create tables
psql tpch -f ../schema.sql

# 04 import data via copy command
psql tpch -c "\\COPY nation FROM 'nation.tbl' WITH DELIMITER '|';"
psql tpch -c "\\COPY part FROM 'part.tbl' WITH DELIMITER '|';"
psql tpch -c "\\COPY customer FROM 'customer.tbl' WITH DELIMITER '|';"
psql tpch -c "\\COPY orders FROM 'orders.tbl' WITH DELIMITER '|';"
psql tpch -c "\\COPY partsupp FROM 'partsupp.tbl' WITH DELIMITER '|';"
psql tpch -c "\\COPY region FROM 'region.tbl' WITH DELIMITER '|';"
psql tpch -c "\\COPY supplier FROM 'supplier.tbl' WITH DELIMITER '|';"
psql tpch -c "\\COPY lineitem FROM 'lineitem.tbl' WITH DELIMITER '|';"

cd ..
# 05 run all queries
psql tpch -c "analyze;"
psql tpch -f query.sql > result.txt
# then check result
grep Time results.txt

itpch's People

Contributors

interma avatar

Stargazers

 avatar

Watchers

 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.