Hi!
As far as I know, mysql doesn't use index if using IN(1, 2...n) queries. Am I wrong? Or is there anything I could do to make mysql use it? I don't mean IN() subquery optimization, because this is clearly explained in the manual.
Example (assuming there is an index on all fields, named index_abc):
WHERE a = 1 AND b = 2 AND c = 3
- then it uses index_abc
WHERE a = 2 AND b IN (2, 4, 5) AND C = 3
- then it doesn't
Thanks in advance for your help.