Revision 9701
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/db.sh | ||
---|---|---|
92 | 92 |
fi |
93 | 93 |
|
94 | 94 |
local var=ssh_dest; local_inv |
95 |
command ${ssh_dest:+ssh "$ssh_dest" }"$cmd" \ |
|
95 |
command "time" ${ssh_dest:+ssh "$ssh_dest" }"$cmd" \
|
|
96 | 96 |
${server:+ --host="$server" }${user:+--user="$user" } --password\ |
97 | 97 |
${password+="$password"} --quick "$@" # --quick: don't buffer entire result |
98 | 98 |
} |
Also available in: Unified diff
lib/sh/db.sh: mysql_cmd(): run the command with `time` because in mysql()'s output_data mode, no queries, and therefore no runtimes, are echoed, so the total runtime needs to be echoed separately instead. the total runtime is also useful in general, when many long-running queries are run and you would also like to know the total time (e.g. in make_analytical_db).