3 Votes Vote

MySQL: make a compound index of 3 fields, or make 3 separate indices?

Posted by topdog 554 days ago Questions| mysql index fields fields All

I have a MySQL table that has, among other attributes, a timestamp, a type and a user_id.
All of them are searchable and/or sortable.
Is it better to create an index for each one, or create a single compound index with all three, or both?

Originally asked by: Petruza on Stack Overflow

Discuss Bury


Who Voted for this Question