MySQL does not seem to use indexes and uses filesort for the following query:
SELECT `tweets`.* FROM `tweets` WHERE (`tweets`.contest_id = 159) ORDER BY tweet_id ASC, tweeted_at DESC LIMIT 100 OFFSET 0
I have indexes on contest_id, tweet_id and tweeted_at
When I execute EXPLAIN EXTENDED , Extra returns "Using where; using filesort". How can I improve my query?
source share