summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorSergei Petrunia <sergey@mariadb.com>2022-11-19 21:00:23 +0300
committerSergei Petrunia <sergey@mariadb.com>2023-02-03 11:01:24 +0300
commitffe0beca2557a31758f50fa53ceb9948b6cd6248 (patch)
treec1ed3bb3a4190a2fc0a331dee0bd428cea564a30 /sql/sql_select.h
parent657868f5e726e0a5e78d879e4ae50f1d3b5a8d71 (diff)
downloadmariadb-git-ffe0beca2557a31758f50fa53ceb9948b6cd6248.tar.gz
MDEV-30032: EXPLAIN FORMAT=JSON output: print costs
Basic printout for join and table execution costs.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r--sql/sql_select.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h
index ce2ed623406..3956651c57b 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -350,6 +350,12 @@ typedef struct st_join_table {
/* Copy of POSITION::records_out, set by get_best_combination() */
double records_out;
+ /*
+ Copy of POSITION::read_time, set by get_best_combination(). The cost of
+ accessing the table in course of the join execution.
+ */
+ double join_read_time;
+
/* The selectivity of the conditions that can be pushed to the table */
double cond_selectivity;