Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Commonly misused and abused VFP features
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00310951
Message ID:
00312020
Views:
53
Hi Jim,

Then, as you explain it, would it be appropriate to make the statement:
As table size increases AND the ratio of deleted to non-deleted rows shrinks, access speed lengthens?


partial text from JimB:
>Nope, VFP is not lying. Using an index on deleted() does probvide full optimization by Rushmore, and in fact that is what causes the deleted tag to slow things down under certain conditions.
>
>The problem with the deleted tag on very large data sets is not exclusive to the deleted tag, but rather is true for any tag that has a severely disporportional distribution of values. In order for Rushmore to optimize the statement it has to read the index for the records meeting the condition. If there is a table (to keep it simple I am referring to a straight file server based DBF stuff) with 100 Million records of which 1,000 are deleted. Then in order for Rushmore to optimise the deleted status it must read 99,999,000 records from the deleted index into memory, this may cause the use of virtual memory. The problem is not actually the deleted tag but is rather a severely disporportional distribution of values. That is, the same side effect would be seen if the index was on a logical field that was 99.99% true with only .01% false.
>
>The article in FoxPro Advisor that brought this to light had emperical tests using very large data sets that demonstrated that you are corect, sys(3054) did report partial optimization without the deleted tag. However, the tests also showed that the partially optimized statements ran faster than the fully optimized ones did.
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform