Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Surrogate vs natural vs artificial, clustered vs non
Message
De
04/09/2014 18:56:54
 
 
À
04/09/2014 15:37:31
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Indexation
Versions des environnements
SQL Server:
SQL Server 2014
Application:
Web
Divers
Thread ID:
01603549
Message ID:
01607057
Vues:
45
>Well. GUIDs would help during company mergers. The NewSequentialID() function in SQL Server produces a GUID that is serialized to fill the index data pages, making inserts very fast, and more efficient that regular GUIDs. It takes up more space, than an int, but potentially far less than primary key on several data columns. :)
>

That's sort of how I feel.

My own two cents is that true GUIDs are going to be beneficial for (as you said) company mergers, and loads from disparate systems.

As for the NewSequentialID, in SQL 2012 there's almost no need for it. The new sequence object is like a table-independent identity value, and can be used for an int or even a bigint. I agree that NewSequentialID is better than a regular GUID, if uniqueness is only necessary in the database.

What has bugged me over the years is seeing people abuse GUIDs - using them when it was completely unnecessary. I've run into clients who weren't aware of the fragmentation issues. Not an indictment of the feature itself, but of the database people who didn't know any better.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform