MySQL Composite Indexes: Column Order, the Leftmost Prefix Rule, and When They Stop Helping
Composite indexes beat multiple single‑column indexes for multi‑column filters, but only if column order respects the leftmost prefix rule and equality columns come before the range column.