Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Speed in results
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01338372
Message ID:
01338380
Views:
21
>>>I like the Select-SQL solution, I think it should be the fastest. I slightly adjusted the solution #1. Don't use number 3 with ORDER. The table should not have any order set for SCAN FOR.
>>
>>One thought though,
>>If the SQL is not optimizable, then pure xBase commands are faster :-)
>>I love SQL but...
>
>We have index on the main field, so it's partially optimizable in this case (because of SET DELETED ON). You can not optimize GROUP BY.
>
>I'm not sure how the index works exactly. We may have an index with FOR clause, e.g.
>index on myField FOR !DELETED() Then this index could be used in SQL as well, if I recall correctly.

Filtered indexes can be used for optimization only in VFP9.
In previous versions you have to have index by DELETED().
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform