Walter Meester
HoogkarspelNetherlands
General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only