What is a MYSQL composite index?

280 Views Asked by At

Advantages? and why not just index fields separately? can any body explain me in simple terms.

1

There are 1 best solutions below

4
On

If you have to query using a composite WHERE (say on two different fields) a composite index should be faster than having two single indexes...
This is a general answer, anyway you should analyze any single query...