Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Guid as PK
Message
 
 
À
22/03/2010 01:44:37
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Titre:
Divers
Thread ID:
01455992
Message ID:
01456040
Vues:
42
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform