I have the following query:
SELECT *
FROM posts USE INDEX(abc)
WHERE a=3 and b=123 and c>4012 and d>5212300 and e!=661
LIMIT 10;
INDEX(abc) is an index of column a, b and c.
The query worked well until recently when the database gets big. It now has about 10million rows.
I have been trying to find alternatives to optimize it without much success. I hope someone can give me some clues. Thanks.
BTW, my table engine is innodb.