Defining a column to be a primary in table on SQL Server – will this make inserts slower?
I ask because I understand this is the case for indexes.
The table has millions of records.
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.
No, not necessarily! Sounds counter-intuitive, but read this quote from Kim Tripp’s blog post:
So actually, having a good clustered index (e.g. on a INT IDENTITY column, if ever possible) does speed things up – even insert, updates and deletes!