does it slow down the query time to use a lot of unique indexes? i dont have that many im just curious, i think i have heard this some where
- id (primary auto_increment)
- username (unique)
- password
- salt (unique)
- email (unique)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends on the database server software and table/index type you are using.
Inserts will be slower any time you have indexes of any sort, but not necessarily by a lot – this will depend on the table size as well.
In general, unique indexes should speed up any SELECT queries you use that are able to take advantage of the index(es)