I am working on building a small Mysql database for our team. For two tables in my db, I used the same index name.
Would there be any performance hit?
I did a few tests queries (800,000+ rows) and so far, so good.
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.
Index names are specific to each table. You cannot have two indexes of the same name in one table, but you can have many indexes of the same name, one for every table. Index names are irrelevant for day-to-day performance. They’re simply there to provide a nice user-friendly way to refer to the index without having to list all the fields in the index. e.g. it’s easier to say
alter table XXX drop key friendlynamethanalter table XXX drop key (field1, field2, field3, field4, field5, etc...)