diff options
author | Monty <monty@mariadb.org> | 2021-10-07 20:15:34 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2022-11-29 15:40:11 +0200 |
commit | 2fb228aae8d46f3b57df8736845cbdaff6907a25 (patch) | |
tree | 563f5165142101aadc35087d89dfc98116000fe1 /mysql-test/main/join.result | |
parent | 289bf77ced9c3107abfc2df44c684cd914c82a12 (diff) | |
download | mariadb-git-2fb228aae8d46f3b57df8736845cbdaff6907a25.tar.gz |
Update matching_candidates_in_table() to treat all conditions similar
Fixed also that the 'with_found_constraint parameter' to
matching_candidates_in_table() is as documented: It is now true only
if there is a reference to a previous table in the WHERE condition for
the current examined table (as it was originally documented)
Changes in test results:
- Filtered was 25% smaller for some queries (expected).
- Some join order changed (probably because the tables had very few rows).
- Some more table scans, probably because there would be fewer returned
rows.
- Some tests exposes a bug that if there is more filtered rows, then the
cost for table scan will be higher. This will be fixed in a later commit.
Diffstat (limited to 'mysql-test/main/join.result')
-rw-r--r-- | mysql-test/main/join.result | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/main/join.result b/mysql-test/main/join.result index 65dccc6b9a3..94d782abd05 100644 --- a/mysql-test/main/join.result +++ b/mysql-test/main/join.result @@ -258,7 +258,7 @@ name varchar(255) default NULL, PRIMARY KEY (id) ) ENGINE=MyISAM; INSERT INTO t2 VALUES (1,'s1'),(2,'s2'),(3,'s3'),(4,'s4'),(5,'s5'); -select t1.*, t2.* from t1, t2 where t2.id=t1.t2_id limit 2; +select straight_join t1.*, t2.* from t2, t1 where t2.id=t1.t2_id limit 2; t1_id t2_id type cost_unit min_value max_value t3_id item_id id name 12 5 Percent Cost -1 0 -1 -1 5 s5 14 4 Percent Cost -1 0 -1 -1 4 s4 |