mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
use ref not range for ... WHERE key IN (val)
This commit is contained in:
@ -255,7 +255,7 @@ t1 ref y y 5 const 1 Using where
|
||||
t2 range x x 5 NULL 2 Using where
|
||||
explain select count(*) from t1 where x in (1);
|
||||
table type possible_keys key key_len ref rows Extra
|
||||
t1 range x x 5 NULL 1 Using where; Using index
|
||||
t1 ref x x 5 const 1 Using where; Using index
|
||||
explain select count(*) from t1 where x in (1,2);
|
||||
table type possible_keys key key_len ref rows Extra
|
||||
t1 range x x 5 NULL 2 Using where; Using index
|
||||
|
Reference in New Issue
Block a user