Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is faster, locate or seek ?
Message
From
10/03/2000 11:06:51
 
 
To
10/03/2000 10:23:38
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00344153
Message ID:
00344233
Views:
27
>Mark,
>
>Seek is faster than locate because it doesn't have the overhead of rushmore. The larger the table gets, the faster SEEK gets compared to locate.
>
>Walter,
>

This isn't quite accurate. Rushmore is a query optimization alogorithm. It looks for an index tag it can use, and if it is there, it will use it. Once an appropriate tag is found, LOCATE will be as fast as SEEK. If an appropriate tag is not found, Rushmore may try to build one. In this case, the size of the table comes into play because it will take longer to index a large table.

However, you are correct in that SEEK will be faster than LOCATE. Because LOCATE uses Rushmore, it must search the tags to find one that it can use. This overhead is the part that slows things down.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform