1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Change the default @@optimizer_switch settings:

- semijoin=on
- firstmatch=on
- loosescan=on
This commit is contained in:
Sergey Petrunya
2011-11-02 13:48:41 +04:00
parent 6498687325
commit 47861a6577
18 changed files with 861 additions and 98 deletions

View File

@ -1,5 +1,7 @@
drop table if exists x1;
drop table if exists x2;
set @tmp_subselect_nulls=@@optimizer_switch;
set optimizer_switch='semijoin=off';
create table x1(k int primary key, d1 int, d2 int);
create table x2(k int primary key, d1 int, d2 int);
insert into x1 values
@ -110,5 +112,6 @@ where x1.d1=x2.d1 and x1.d2=x2.d2);
k d1 d2
10 10 10
20 20 20
set optimizer_switch= @tmp_subselect_nulls;
drop table x1;
drop table x2;