Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Increase performance on write
Message
 
 
À
11/02/2016 13:15:30
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2014
OS:
Windows 8.1
Network:
Windows 2008 Server
Divers
Thread ID:
01631211
Message ID:
01631307
Vues:
38
>>Just to answer on your 4byte question. Integer is 4 bytes, that's while it's more efficient than other types for PK.
>
>So, I am ok on that one.
>
>But, I am about to reach a limit on the current primary key value. So, I would need to opt that to Big Int I guess. Would that still be valid as far as best usage of primary keys?

Yes. 8 bytes for BigInt.

BTW, don't forget that you can use negative values for Integer key. So, if you only used positive values, there is a possibility to go negative and keep Int.

But if you anticipate you do need to use BigInt, so be it. It would be a pain to change the existing type, though.
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