[opt](tools) analyze with full in tools scripts #25873

This commit is contained in:
minghong
2023-10-30 08:19:36 +08:00
committed by GitHub
parent 28dce9f226
commit 576972ee79
2 changed files with 4 additions and 4 deletions

View File

@ -204,8 +204,8 @@ run_sql() {
mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" -e "$*"
}
start=$(date +%s)
run_sql "analyze database ${DB} with sync;"
run_sql "analyze database ${DB} with full with sync;"
end=$(date +%s)
analyzeTime=$((end - start))
echo "analyze database ${DB} with sync total time: ${analyzeTime} s"
echo "analyze database ${DB} with full with sync total time: ${analyzeTime} s"
echo '============================================'

View File

@ -243,8 +243,8 @@ run_sql() {
mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" -e "$*"
}
start=$(date +%s)
run_sql "analyze database ${DB} with sync;"
run_sql "analyze database ${DB} with full with sync;"
end=$(date +%s)
totalTime=$((end - start))
echo "analyze database ${DB} with sync total time: ${totalTime} s"
echo "analyze database ${DB} with full with sync total time: ${totalTime} s"
echo '============================================'