mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 20:12:02 +00:00
16 lines
441 B
Bash
16 lines
441 B
Bash
#!/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
|
|
curl -sS --max-time 6000 -G --data-urlencode "query=${query}" 'http://localhost:9000/exec?timings=true' ||
|
|
(questdb-6.4.1-rt-linux-amd64/bin/questdb.sh stop && questdb-6.4.1-rt-linux-amd64/bin/questdb.sh start && sleep 5)
|
|
echo
|
|
done;
|
|
done;
|