Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Surrogate Primary Keys - Integer or Character ?
Message
From
28/07/2000 05:07:13
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00397596
Message ID:
00398046
Views:
36
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform