Backport into MariaDB-5.2 the following:

WL#2771 "Block Nested Loop Join and Batched Key Access Join"
This commit is contained in:
Igor Babaev 2009-12-20 18:26:15 -08:00
commit 4449a5f489
26 changed files with 18523 additions and 436 deletions

View file

@ -347,7 +347,7 @@ id select_type table type possible_keys key key_len ref rows Extra
explain select t1.a from t1 left join t2 on TRUE;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 4
1 SIMPLE t2 index NULL PRIMARY 4 NULL 2 Using index
1 SIMPLE t2 index NULL PRIMARY 4 NULL 2 Using where; Using index
explain select t1.a from t1 left join t3 on t3.pk1=t1.a and t3.pk2 IS NULL;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 4