Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Seek or locate ?
Message
From
05/06/2001 10:55:31
Walter Meester
HoogkarspelNetherlands
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00514305
Message ID:
00515108
Views:
17
Hi glenn,

I know i'm stepping on ice, but when seeking records on more than one criteria, a SET FILTER in combination with SEEK can be far faster than a optmizable LOCATE. However, performance depends on the selectivity of the FILTER.

Walter,

>Seek cannot be beat for data retrieval based upon a single index expression. If you need to retrieve data based upon multiple optimized expressions the use either locate or SQL-Select.
>
>ie. Locate for state='MI' and city='TRAVERSE' or
>Selecte * from MyTable where state='MI' and city='TRAVERSE'
>
>Glenn
>
>
>>Moises,
>>
>>As Alex has said Locate can be as effective as Seek, however, you need to be very careful and ensure that your statement is Rushmore optimised or you will have a performance hit.
>>
>>Locate is powerful in that it will sequentially read through a table if it can't use Rushmore, however the downside is that it can be very slow.
>>
>>Regards,
>>
>>Aaron
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform