Make sure Python 3.8 or higher is installed pip install duckdb==0.8.1 pip install numpy
- Clone py-tpcc repository
$ git clone <py-tpcc repo https/ssh url>
- Install dependencies
$ cd pytpcc $ pip install -r requirements.txt
- Generate duckdb driver config file
$ python tpcc.py --print-config duckdb > /tmp/duckdb.config
- Modify config file to specify the db path
$ database = /tmp/duckdb.tpcc
- Mock data
$ python tpcc.py --no-execute --config=/tmp/duckdb.config --warehouses=1 --ddl=duckdb.sql duckdb
- Follow above steps to load data
- Execute
$ python tpcc.py --no-load --config=/tmp/duckdb.config --warehouses=1 duckdb