Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exact and deleted recs - did everybody know this but me?
Message
From
25/07/2006 08:27:54
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
24/07/2006 21:50:51
Neil Mc Donald
Cencom Systems P/L
The Sun, Australia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01139176
Message ID:
01139629
Views:
9
>Hi,
>I did some testing a couple of weeks ago checking all the VFP9 changes and their effects on SQL to see if any differences.
>The test dbf had 10 Million records, I randomly inserted 100 records thru it and deleted 100,000 records for the test.
>
>The following SQL executed in 0.05sec once I got it Fully optimized.
>
>
>SELECT RECNO() AS RP, * FROM invh WHERE ALLTRIM(BATCHNO)="2000" ORDER BY lastname, firstname INTO CURSOR aa nofilter
>
>
>You need a DELETED() index as well as the correct indexes so that rushmore can fully optimize.

There is seldom a need for DELETED() index. If it's on your local drive it will help. Over the network it won't.

Restart VFP between trials to eliminate caching and you'll see.
Previous
Reply
Map
View

Click here to load this message in the networking platform