Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index on Deleted()
Message
From
06/06/2009 05:55:24
 
 
To
06/06/2009 04:46:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01404089
Message ID:
01404091
Views:
79
This message has been marked as a message which has helped to the initial question of the thread.
Make it a binary index, and you will never regret it.
Index on deleted() tag deleted binary
An even better solution is to add a logical field called resuable, and set it to true instead of deleting the record. Then whenever you need to add a record, you update a reusable record instead. If no reusable record is available then you add a new record. This is how "real" SQL servers work, AFAIK.

>Hi All,
>
>What were the recommendations about creating an index on DELETED() records? Given a file of, say, 1 million records of which 10% might be deleted is it a good or bad idea to index on DELETED()?
>
>TIA
Previous
Reply
Map
View

Click here to load this message in the networking platform