1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +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

@@ -134,5 +134,17 @@ select * from t2 where t2.a in ( select a from t1 where t1.b=t2.b);
set optimizer_switch=@tmp;
drop table t1,t2;
--echo #
--echo # MRR for range access (no BKA, just MRR)
--echo #
create table t1 (a int, b int, key(a));
insert into t1 select tbl1.a+10*tbl2.a, 12345 from t0 tbl1, t0 tbl2;
set @tmp= @@optimizer_switch;
set optimizer_switch='mrr=on,mrr_sort_keys=on';
explain format=json select * from t1 where a < 3;
drop table t1;
drop table t0;