Abhimanyu
Abhimanyu

Reputation: 4917

What is a MYSQL composite index?

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

Upvotes: 0

Views: 236

Answers (1)

Marco
Marco

Reputation: 57593

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...

Upvotes: 1

Related Questions