mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-30972: ANALYZE FORMAT=JSON: some time is unaccounted-for in BNL-H join
After MDEV-30830 has added block-nl-join.r_unpack_time_ms, it became apparent that there is some unaccounted-for time in BNL join operation, namely the time that is spent after unpacking the join buffer record. Fix this by adding a Gap_time_tracker to track the time that is spent after unpacking the join buffer record and before any next time tracking. The collected time is printed in block-nl-join.r_other_time_ms. Reviewed by: Monty <monty@mariadb.org>
This commit is contained in:
@@ -1901,6 +1901,9 @@ void Explain_table_access::print_explain_json(Explain_query *query,
|
||||
|
||||
writer->add_member("r_unpack_time_ms");
|
||||
writer->add_double(jbuf_unpack_tracker.get_time_ms());
|
||||
|
||||
writer->add_member("r_other_time_ms").
|
||||
add_double(jbuf_extra_time_tracker.get_time_ms());
|
||||
/*
|
||||
effective_rows is average number of matches we got for an incoming
|
||||
row. The row is stored in the join buffer and then is read
|
||||
|
Reference in New Issue
Block a user