Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I optimize this query?
Message
 
 
To
25/06/2003 06:43:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00803505
Message ID:
00803696
Views:
6
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform