summaryrefslogtreecommitdiff
path: root/sql/sql_explain.h
diff options
context:
space:
mode:
authorGalina Shalygina <galina.shalygina@mariadb.com>2019-02-06 23:40:07 +0300
committerGalina Shalygina <galina.shalygina@mariadb.com>2019-02-06 23:40:07 +0300
commit447e0f023fff0fa2ccfa7e93b77f1da3be3b43f1 (patch)
tree1210e525389dfa3e4b2fa00e22fb18bf29a7f016 /sql/sql_explain.h
parente299ae5b0786aa9348e422f4271fb344d51f60fa (diff)
downloadmariadb-git-447e0f023fff0fa2ccfa7e93b77f1da3be3b43f1.tar.gz
MDEV-18144: ANALYZE for statement support for PK filters
ANALYZE and ANALYZE FORMAT=JSON structures are changed in the way that they show additional information when rowid filter is used: - r_selectivity_pct - the observed filter selectivity - r_buffer_size - the size of the rowid filter container buffer - r_filling_time_ms - how long it took to fill rowid filter container New class Rowid_filter_tracker was added. This class is needed to collect data about how rowid filter is executed.
Diffstat (limited to 'sql/sql_explain.h')
-rw-r--r--sql/sql_explain.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_explain.h b/sql/sql_explain.h
index a161f6c1049..08966b71faa 100644
--- a/sql/sql_explain.h
+++ b/sql/sql_explain.h
@@ -624,6 +624,9 @@ public:
/* Expected selectivity for the filter */
double selectivity;
+ /* Tracker with the information about how rowid filter is executed */
+ Rowid_filter_tracker *tracker;
+
void print_explain_json(Explain_query *query, Json_writer *writer,
bool is_analyze);