Skip to content

Commit

Permalink
[improvement](ssb) run-ssb-queries.sh and run-ssb-flat-queries.sh add…
Browse files Browse the repository at this point in the history
… analyze database with sync and calculate total time apache#21653
  • Loading branch information
guoxiaolongzte authored Jul 10, 2023
1 parent f9c56d5 commit 9f3bc11
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/ssb-tools/bin/run-ssb-flat-queries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ run_sql "show variables;"
echo '============================================'
run_sql "show table status;"
echo '============================================'
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 '============================================'

sum=0
for i in '1.1' '1.2' '1.3' '2.1' '2.2' '2.3' '3.1' '3.2' '3.3' '3.4' '4.1' '4.2' '4.3'; do
Expand Down
6 changes: 6 additions & 0 deletions tools/ssb-tools/bin/run-ssb-queries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ run_sql "show variables;"
echo '============================================'
run_sql "show table status;"
echo '============================================'
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 '============================================'

sum=0
for i in '1.1' '1.2' '1.3' '2.1' '2.2' '2.3' '3.1' '3.2' '3.3' '3.4' '4.1' '4.2' '4.3'; do
Expand Down

0 comments on commit 9f3bc11

Please sign in to comment.