2022-06-26 04:00:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
TRIES=3
|
|
|
|
|
|
|
|
cat queries.sql | while read query; do
|
|
|
|
sync
|
|
|
|
echo 3 | sudo tee /proc/sys/vm/drop_caches
|
|
|
|
|
|
|
|
for i in $(seq 1 $TRIES); do
|
2022-06-27 07:33:42 +00:00
|
|
|
sudo mariadb test -vvv -e "${query}"
|
2022-06-26 04:00:07 +00:00
|
|
|
done;
|
|
|
|
done;
|