mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-7899: 10.1 is 3% slower than 10.0 in OLTP RO
- Remove ANALYZE's timing code off the the execution path of regular SELECTs. - Improve the tracker that tracks counts/execution times of SELECTs or DML statements: = regular execution just increments counters = ANALYZE will also collect timings.
This commit is contained in:
@ -1933,9 +1933,9 @@ void Explain_update::print_explain_json(Explain_query *query,
|
||||
if (using_io_buffer)
|
||||
writer->add_member("using_io_buffer").add_ll(1);
|
||||
|
||||
if (is_analyze && time_tracker.get_loops())
|
||||
if (is_analyze && command_tracker.get_loops())
|
||||
writer->
|
||||
add_member("r_total_time_ms").add_double(time_tracker.get_time_ms());
|
||||
add_member("r_total_time_ms").add_double(command_tracker.get_time_ms());
|
||||
|
||||
if (where_cond)
|
||||
{
|
||||
|
Reference in New Issue
Block a user