Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling large data sets for web apps
Message
From
26/07/2001 17:24:16
 
 
To
26/07/2001 17:09:37
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00535271
Message ID:
00536047
Views:
10
>>All you have to do is create an index on Empty( < field > ) and then both the Empty and Not Empty will be optimized.
>
>I do not recommend this. Any condition, especially on "not empty()", would return a LOT of records from the index, just to do Rushmore Optimization. Thus, a query would be "Full Rushmore Optimized" by definition, but not fast. My recent FAQ on Rushmore Optimization explains the details of how this works.
>
>Hilmar.

In the example I posted to Jay, I have 2.5 million records. Here I need to check for D40CkNo being empty. I've run the following performance test.

lnSeconds = Seconds()
Count For D40CkNo = ' ' To N1 && .845 2,497,224 records
?"1a1", Seconds() - lnSeconds
lnSeconds = Seconds()
Count For Empty( D40CkNo ) To N1 && .444 2,497,224 records
?"1a", Seconds() - lnSeconds

In this case because the speed of the Empty( < field > ) is twice as fast.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform