Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I optimize this query?
Message
 
 
À
25/06/2003 06:43:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00803505
Message ID:
00803696
Vues:
7
Hi Fabio,
You're correct but I would rather do this way because LOCATE is Rushmore optimizable.
SELECT payroll_tbl
SET ORDER TO ID DESC
LOCATE   && GO TO TOP
SCAN WHILE unemp_ins_pct = 0
ENDSCAN
>Hi Sergey,
>
>Only WHILE clause it implies scope REST
>
>
>SELECT payroll_tbl
>SET ORDER TO ID DESC
>SCAN ALL WHILE unemp_ins_pct = 0
>ENDSCAN
>.q1 = unemp_ins_pct
>
>
>The strange is this:
>
>LOCATE is the native VFP search command, but often it is slow.
>If it uses a index on FOR clause, it is much slower.
>
>Fabio
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform