November 8, 2012 at 10:44 am
Hello,
I know that if my primary key is identity it slows down the system
I am designing a new database.
two of the tables are question (questionid int (PK identity), questionnarrative, etc)
Quiz (quizid int(PK,identity), quizname, etc
I will have a huge huge number of questions and quizzes
Is there a way to keep away from identity and it is better to specify the column as largeint instead of int
Thanks
November 8, 2012 at 10:53 am
I know that if my primary key is identity it slows down the system
Where did you hear that from? First, are you concerned about an identity column being used as a primary key, a clustering key or both? They don't necessarily have to be the same.
As a general rule, I recommend the Kimberly Tripp recommended best practice of making the clustered index an identity column.
You can read her blog here: http://www.sqlskills.com/blogs/kimberly/post/The-Clustered-Index-Debate-again!.aspx.
November 8, 2012 at 11:04 am
Sarsoura (11/8/2012)
I know that if my primary key is identity it slows down the system
Not sure where you heard that from but that's the diametric opposite of what usually happens.
See the link that George provided above for a primer on the subject.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply