Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is normal this Speed?
Message
From
09/05/2003 17:19:22
 
 
To
09/05/2003 15:54:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00784121
Message ID:
00786955
Views:
21
>>>>Hilmar,
>>>>I'm actually using "Not deleted()" as my tag instead of "deleted()". Is there any difference.
>>>>Yau
>>>
>>>I am not sure. But I think the index will be used anyway (which isn't always appropriate - see my FAQ), because the implicit condition, if you have SET DELETED ON, is ... AND NOT DELETED(). In other words, the index tag exactly matches the expression.
>>>
>>>If you need your index for other purposes (besides "optimization"), there are ways to avoid VFP using it.
>>>
>>>Hilmar.
>>
>>Using NOT in a tag means that Rushmore can't use it for optimization.
>
>Even if the expression explicitly says "NOT Something"? Perhaps, I am not sure.

I believe that's the case.

From the VFP8 help:
Using Rushmore Query Optimization to Speed Data Access

Indexing Effectively for Rushmore Query Optimization
Rushmore cannot take advantage of all indexes. If you use a FOR clause in the INDEX command, Rushmore cannot use the index for optimization. For example, because it contains a FOR clause, the following statement cannot be optimized:
INDEX ON ORDNUM FOR DISCOUNT > 10 TAG ORDDISC

Similarly, Rushmore cannot use an index created with a NOT condition. For example, the following expression can be optimized:
INDEX ON DELETED() TAG DEL

But this one cannot:
INDEX ON NOT DELETED() TAG NOTDEL
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform