summaryrefslogtreecommitdiff
path: root/mysql-test/r/subselect_mat_cost.result
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2011-10-03 15:50:42 -0700
committerIgor Babaev <igor@askmonty.org>2011-10-03 15:50:42 -0700
commite1194ad63b9352c1119df56b22b0698dfb66b2df (patch)
tree2dfd4d403d0ebcdbad8047feeef5959aa76271d3 /mysql-test/r/subselect_mat_cost.result
parentcc3680cbd1c56ca03384ced822c1cec1586cc2ef (diff)
parent3f82e2edb81448452f647a846c1445efb918493f (diff)
downloadmariadb-git-e1194ad63b9352c1119df56b22b0698dfb66b2df.tar.gz
Merge.
Diffstat (limited to 'mysql-test/r/subselect_mat_cost.result')
-rw-r--r--mysql-test/r/subselect_mat_cost.result10
1 files changed, 6 insertions, 4 deletions
diff --git a/mysql-test/r/subselect_mat_cost.result b/mysql-test/r/subselect_mat_cost.result
index e8312c837e6..7a4fec3823e 100644
--- a/mysql-test/r/subselect_mat_cost.result
+++ b/mysql-test/r/subselect_mat_cost.result
@@ -344,18 +344,20 @@ select count(*)
from CountryLanguage
where (Language, Country) NOT IN
(SELECT City.Name, Country.Code
-FROM City LEFT JOIN Country ON (Country = Code and City.Population < 10000));
+FROM City LEFT JOIN Country ON (Country = Code and City.Population < 10000))
+AND Language IN ('English','Spanish');
id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY CountryLanguage index NULL PRIMARY 33 NULL 984 Using where; Using index
+1 PRIMARY CountryLanguage range Language Language 30 NULL 72 Using index condition; Using where; Rowid-ordered scan
2 DEPENDENT SUBQUERY City ref CityName CityName 35 func 2 Using index condition
2 DEPENDENT SUBQUERY Country eq_ref PRIMARY PRIMARY 3 world.City.Country 1 Using where; Using index
select count(*)
from CountryLanguage
where (Language, Country) NOT IN
(SELECT City.Name, Country.Code
-FROM City LEFT JOIN Country ON (Country = Code and City.Population < 10000));
+FROM City LEFT JOIN Country ON (Country = Code and City.Population < 10000))
+AND Language IN ('English','Spanish');
count(*)
-979
+88
Q2.3m:
MATERIALIZATION with the PARTIAL_MATCH_MERGE strategy, because the HAVING
clause prevents the use of the index on City(Name), and in practice reduces