mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Compatible benchmark
This commit is contained in:
parent
486cc06880
commit
a091a5655c
@ -7,11 +7,11 @@ sudo apt-get install -y postgresql-client
|
||||
|
||||
psql -U crate -h localhost --no-password -t -c 'SELECT 1'
|
||||
|
||||
wget --continue 'https://datasets.clickhouse.com/hits_compatible/hits.tsv.gz'
|
||||
gzip -d hits.tsv.gz
|
||||
wget --continue 'https://datasets.clickhouse.com/hits_compatible/hits.csv.gz'
|
||||
gzip -d hits.csv.gz
|
||||
|
||||
psql -U crate -h localhost --no-password -t < create.sql
|
||||
psql -U crate -h localhost --no-password -t -c '\timing' -c "COPY hits FROM 'file:///$(pwd)/hits.tsv'"
|
||||
psql -U crate -h localhost --no-password -t -c '\timing' -c "COPY hits FROM 'file:///$(pwd)/hits.csv'"
|
||||
|
||||
# It failed to load the data.
|
||||
# COPY 0
|
||||
|
@ -9,3 +9,7 @@ sudo docker exec vertica /opt/vertica/bin/vsql -U dbadmin -c "$(cat create.sql)"
|
||||
|
||||
wget --continue 'https://datasets.clickhouse.com/hits_compatible/hits.tsv.gz'
|
||||
gzip -d hits.tsv.gz
|
||||
|
||||
sudo docker cp hits.tsv vertica:/hits.tsv
|
||||
|
||||
time sudo docker exec vertica /opt/vertica/bin/vsql -U dbadmin -c "COPY hits FROM '/hits.tsv' DELIMITER E'\\t'"
|
||||
|
Loading…
Reference in New Issue
Block a user