Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 829 Bytes

README_SQLITE.md

File metadata and controls

41 lines (36 loc) · 829 Bytes

Duckdb TPCC Python Driver

Prequistes

Make sure Python 3.8 or higher is installed

pip install sqlite
pip install numpy
sudo apt install sqlite3

pip install sqlite pip install numpy sudo apt install sqlite3

How to mock TPC-C data

  1. Install dependencies
cd pytpcc
pip install -r requirements.txt
  1. Generate duckdb driver config file
python tpcc.py --print-config sqlite > /tmp/sqlite.config
  1. Modify config file to specify the db path
vim /tmp/sqlite.config
database = /tmp/sqlite/tpcc.db
  1. Load data
python tpcc.py --no-execute --config=/tmp/sqlite.config --warehouses=1 --ddl=duckdb.sql sqlite

How to run TPC-C

  1. Follow above steps to load data
  2. Execute
python tpcc.py --no-load --config=/tmp/sqlite.config --warehouses=1 sqlite