mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 04:52:10 +00:00
22 lines
325 B
Bash
Executable File
22 lines
325 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Install
|
|
|
|
sudo apt-get update
|
|
sudo apt-get install -y python3-pip
|
|
pip install duckdb psutil
|
|
|
|
# Load the data
|
|
|
|
wget --continue 'https://datasets.clickhouse.com/hits_compatible/hits.csv.gz'
|
|
gzip -d hits.csv.gz
|
|
|
|
./load.py
|
|
# 4216.5390389899985 seconds
|
|
|
|
# Run the queries
|
|
|
|
./run.sh | tee log.txt
|
|
|
|
wc -c my-db.duckdb
|