Skip to content

Commit

Permalink
[improvement](tpch) run-tpch-query.sh add analyze database with sync …
Browse files Browse the repository at this point in the history
…and calculate total time (apache#21652)

* run-tpch-query shell add analyze database with sync and calculate total time

* run-tpch-query shell add analyze database with sync and calculate total time
  • Loading branch information
guoxiaolongzte authored Jul 10, 2023
1 parent 8973610 commit 2429079
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/tpch-tools/bin/run-tpch-queries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ run_sql "show variables;"
echo '============================================'
run_sql "show table status;"
echo '============================================'
run_sql "analyze database ${DB};"
start=$(date +%s)
run_sql "analyze database ${DB} with sync;"
end=$(date +%s)
totalTime=$((end - start))
echo "analyze database ${DB} with sync total time: ${totalTime} s"
echo '============================================'
echo "Time Unit: ms"

Expand Down

0 comments on commit 2429079

Please sign in to comment.