mirror of
https://github.com/MariaDB/server.git
synced 2025-06-20 21:01:21 +03:00
Range optimizer fix:
If cost(full_scan_on_shortest_covering_index) < cost(best_range_scan) < cost(full_table_scan) use full_scan_on_shortest_covering_index (before this fix best_range_scan was used)
This commit is contained in:
@ -66,7 +66,7 @@ a
|
||||
alter table t1 engine=myisam;
|
||||
explain select * from t1 where a in (869751,736494,226312,802616);
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range uniq_id uniq_id 4 NULL 4 Using where; Using index
|
||||
1 SIMPLE t1 index uniq_id uniq_id 4 NULL 4 Using where; Using index
|
||||
drop table t1;
|
||||
create table t1 (x int not null, y int not null, key x using BTREE (x,y), unique y using BTREE (y))
|
||||
engine=heap;
|
||||
|
Reference in New Issue
Block a user