Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a speed difference between filter and seek ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00417902
Message ID:
00417914
Views:
28
A filter only controls what you "see". VFP still steps through the table until it finds the next record meeting the filter condition. Therefore, a SEEK is always the fastest choice.

>Here is some code :
>
>SELECT appur
>SET FILTER TO ident = the_ident
>GO TOP
>DO WHILE !EOF()
> ...do stuff...
> SELECT appur
> SKIP
>ENDDO
>
>I have an index on appur.ident
>
>Would it be faster to do a seek and do the work around it ? And why if the filter is optimized by rushome ?
>
>Thanks
>Eric
I try to stay online, to get better information.
I try to get away from the office once in a while..
But they KEEP... PULLING.. ME.. BACK.. IN!!!
Previous
Reply
Map
View

Click here to load this message in the networking platform