Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Surrogate Keys - Have I got the right idea
Message
De
11/01/2001 15:41:28
 
 
À
11/01/2001 13:18:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00434523
Message ID:
00462498
Vues:
20
James:

> Another thing: using integers as primary keys gives complex queries an
> inherent speed boost. This alone is enough argument to use surrogates.

What do you do if your user can add data offline? You may be restricted
to GUIDs or by having code to use dummy key values until the user goes
back online (in which case, you do need cascade updates to synchronize
your keys when the user goes back online).

Suurogate keys are not necessarily integers and I don't want anyone to give
that impression to a casual reader.

I do agree with you that, when feasible, using integers field for surrogate
keys is a Good Practice.

Daniel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform