mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
14 lines
280 B
Bash
Executable File
14 lines
280 B
Bash
Executable File
#!/bin/bash
|
|
|
|
TRIES=3
|
|
|
|
cat queries.sql | while read query; do
|
|
sync
|
|
echo 3 | sudo tee /proc/sys/vm/drop_caches
|
|
|
|
echo "$query";
|
|
for i in $(seq 1 $TRIES); do
|
|
sudo docker exec vertica_ce /opt/vertica/bin/vsql -U dbadmin -c '\timing' -c "$query"
|
|
done;
|
|
done;
|