mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-30032: EXPLAIN FORMAT=JSON output: print costs
Basic printout for join and table execution costs.
This commit is contained in:
@ -34,8 +34,10 @@ select a, (select d from t2 where b=c) from t1;
|
||||
--source include/analyze-format.inc
|
||||
analyze format=json
|
||||
select a, (select d from t2 where b=c), (select d from t2 where b=c union select 1 order by 1 limit 1) from t1;
|
||||
--source include/explain-no-costs.inc
|
||||
explain format=json
|
||||
select a, (select d from t2 where b=c) from t1;
|
||||
--source include/explain-no-costs.inc
|
||||
explain format=json
|
||||
select a, (select d from t2 where b=c), (select d from t2 where b=c union select 1 order by 1 limit 1) from t1;
|
||||
set optimizer_switch='subquery_cache=off';
|
||||
|
Reference in New Issue
Block a user