mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-30032: EXPLAIN FORMAT=JSON output: print costs
Basic printout for join and table execution costs.
This commit is contained in:
@@ -216,6 +216,7 @@ public:
|
||||
message(NULL),
|
||||
having(NULL), having_value(Item::COND_UNDEF),
|
||||
using_temporary(false), using_filesort(false),
|
||||
cost(0.0),
|
||||
time_tracker(is_analyze),
|
||||
aggr_tree(NULL)
|
||||
{}
|
||||
@@ -249,9 +250,10 @@ public:
|
||||
bool using_temporary;
|
||||
bool using_filesort;
|
||||
|
||||
double cost;
|
||||
/* ANALYZE members */
|
||||
Time_and_counter_tracker time_tracker;
|
||||
|
||||
|
||||
/*
|
||||
Part of query plan describing sorting, temp.table usage, and duplicate
|
||||
removal
|
||||
@@ -824,6 +826,9 @@ public:
|
||||
ha_rows rows;
|
||||
double filtered;
|
||||
|
||||
/* Total cost incurred during one execution of this select */
|
||||
double cost;
|
||||
|
||||
/*
|
||||
Contents of the 'Extra' column. Some are converted into strings, some have
|
||||
parameters, values for which are stored below.
|
||||
|
Reference in New Issue
Block a user