1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

EXPLAIN FORMAT=JSON: Support range+MRR plans (when MRR is used but BKA is not)

This commit is contained in:
Sergei Petrunia
2014-12-06 01:11:22 +03:00
parent 8fb2c80fdb
commit 9cac7649ea
4 changed files with 53 additions and 0 deletions

View File

@@ -450,13 +450,24 @@ enum explain_extra_tag
};
/*
Explain data structure describing join buffering use.
*/
class EXPLAIN_BKA_TYPE
{
public:
EXPLAIN_BKA_TYPE() : join_alg(NULL) {}
bool incremental;
/*
NULL if no join buferring used.
Other values: BNL, BNLH, BKA, BKAH.
*/
const char *join_alg;
/* Information about MRR usage. */
StringBuffer<64> mrr_type;
bool is_using_jbuf() { return (join_alg != NULL); }