Why Does EXPLAIN Show Using filesort Even When a Composite Index Covers WHERE and ORDER BY?
The article explains why MySQL may still report Using filesort despite a composite index that appears to satisfy both WHERE and ORDER BY clauses, covering index ordering rules, the impact of range conditions, mismatched ORDER BY field order, ASC/DESC mixing, and practical optimization techniques.
