Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper Way To Check For Duplicate Primary Key
Message
From
25/06/2001 14:22:04
 
 
To
23/06/2001 21:40:29
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00522709
Message ID:
00523113
Views:
11
>Hi Keith
>
>I would guess that it depends a lot on what can be assumed about the data source(s). One would expect that within the source, the uniqueness of primary and candidate keys should always be met.

...such is the nature of primary & candidate keys...

> Adding a field for the source and treating it as part of the merged primary key should then be easy, and errors should be rare, so handling the error should be more efficient than a seek for every record to be merged.

This is a recurring merge where data from a single source
will occur on a fairly regular basis. Some of the sources
send us updates only, others send full files each time.

At this point I can make no assumptions about the hit rate.
My question in essance is: is processing an irregularly
occurring error more "expensive" than doing a SEEK before
each add or change?

   ...kt
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform