Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it reasonable to have index on DELETED()?
Message
From
25/03/1999 03:38:19
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00196021
Message ID:
00201765
Views:
30
cristof,

>The result is, you are right... and I'm right. *s* VFP does a full index scan first. But then it verifies that every record in that result set really matches the condition. One exception here, as I've mentioned before, is COUNT. This command only uses the index.

I'm glad we figured it out here. The conclusion might be that in this case VFP cannot optimize this kind of queries without actually accesing the table. I would have been nice as i agree that it really can significantly improve performance.

Still standing in this case is that this kind queries are not (much) faster if you omit the deleted tag.

Maybe in the future MS will implent this kind of optimization

And, YES i also did find that count is the exception here.

Thanks,

Walter,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform