Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Speed in results
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01338372
Message ID:
01338380
Vues:
23
>>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform