Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Surrogate Primary Keys - Integer or Character ?
Message
De
28/07/2000 05:07:13
Mike Yearwood
Toronto, Ontario, Canada
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00397596
Message ID:
00398046
Vues:
26
Hi Larry

I guess Drew's generator is better because it allows 1.35 billion combinations in 5 characters instead of the Fox 2.x style 10 billion in a 10 char field? If it only generates 1.35 billion, then I'm even more inclined to go with integer, so I don't pay the performance penalty of generating 1.35 billion character strings (or however many I need) and I can get a max of 2 billion keys.

I never really looked at the part of x3genpk that creates the string. I only modified it to allow it to be called for non pk numerics like invoice numbers.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform