Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Guid as PK
Message
 
 
To
22/03/2010 01:44:37
General information
Forum:
Microsoft SQL Server
Category:
Database design
Title:
Miscellaneous
Thread ID:
01455992
Message ID:
01456040
Views:
41
In general, int PKs perform faster than GUID. You do know that you can utilize the negative range and also if you expect your table to grow really large, you can use BigInit.

>Kevin,
>
>
>Beginners question...
>
>
>Are there any serious drawbacks to using a guid as a pk that you know of ?
>
>While we may get away with an int for most tables, there's one that may grow very large - if the business is successful
>
>I am thinking of making the pk of all tables guid
>
>I also want to add the possibility that someone can store a subset of the database onto his laptop, work on it, and later sync it back to the db
>
>Your opinion ?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform