4 ms·
You get some speedup from both indexes, but not the same. On a related situation, having `WHERE a = 1 AND b = 2` indexes on `a` and `b` just can not have the s
by marcosdumay 9y ago
You get some speedup from both indexes, but not the same.
On a related situation, having `WHERE a = 1 AND b = 2` indexes on `a` and `b` just can not have the same performance as an index on `(a, b)`, because you will inevitably have to scan one of the indexes looking for matches. On the case you posted, of an order by, I don't think you get any speedup on the index on `b` at all.
Besides, that `LIMIT 1` at the end of the clause is important to the question.