Anjali05 / CS764-project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

=============Steps for setting up DB and running benchmarks=============

Follow the steps below for generating db for SSB and TBC-H:

Follow the steps for running benchmarks on PostgreSQL

  • Change the path SSB_TABLE_FILES_DIR in ssb/postgres/config.sh and TPCH_TABLE_FILES_DIR in ssb/postgres/config.sh  to point to local SSB and TPC-H directories respectively db location. 
  • run ./load.sh (This creates the schema and loads data into the schema in PG and adds foreign key constraints.)

Note: Data in the existing table files may not adhere to Postgres formatting due to stray ‘|’ at the end of rows. Use "for i in ls *.tbl; do sed 's/|$//' $i > ${i/tbl/csv}; echo $i; done;” to format the data.  

  • Run queries using ./run-queries.sh

Follow the steps for running benchmarks on SQLite  

  • Change the path SSB_TABLE_FILES_DIR in ssb/sqlite/config.sh and TPCH_TABLE_FILES_DIR in ssb/sqlite/config.sh  to point to local SSB and TPC-H directories respectively db location. 
  • Change SQLITE_DB_PATH path in ssb/sqlite/config.sh and  tpch/sqlite/config.sh to point to desired location of sqlite db creation. 
  • run ./load.sh. This will generate the .db files for sqlite. 
  • run queries ./run-queries.sh

About


Languages

Language:Roff 93.0%Language:TeX 4.0%Language:C 2.4%Language:Shell 0.2%Language:TSQL 0.1%Language:Objective-C 0.1%Language:Perl 0.1%Language:Makefile 0.0%Language:C++ 0.0%