Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Understanding Indexes
Message
 
To
06/08/2009 15:42:32
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01416559
Message ID:
01416605
Views:
87
Hi Abel,

> bypass or ignore deleted records?

Why would you need to?

If your problem happens with a PRIMARY index, the right answer would be to introduce a surrogate key (http://fox.wikis.com/wc.dll?Wiki~SurrogateKey~SoftwareEng) instead of using a user controlled field as a primary key. If the error happens on a CANDIDATE index, the FOR clause that Naomi mentioned is the way to go. However, if the field is needed for optimization, you need to add a second non-CANDIDATE index on the same field without a FOR clause just for optimization purposes.
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform