Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Surrogate Keys - Have I got the right idea
Message
From
11/01/2001 15:41:28
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00434523
Message ID:
00462498
Views:
15
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform