Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is faster, locate or seek ?
Message
From
10/03/2000 16:24:40
 
 
To
10/03/2000 13:32:03
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00344153
Message ID:
00344409
Views:
19
>
>IMO, This is not correct, If my memory serves well, someone already proved that seek was way faster than locate for other reasons (Mike yearwood ?). If the table grows larger, so does the difference in performance between the two. This can't be explaind only by 'determining the proper indexes to use'

I've never heard of this being done, but would be interested in seeing it.

>
>You're correct that locate has the overhead of determining the index tag(s) to use (therefore it might be wise to drop indexes for small tables or turn optimization off). But after it has done this it makes a bitmap of all matching nodes of all matching tags. In most cases you won't need the other indexnodes loaded into memory because you're probably interested in only one record (else you'd rather go for SCAN) and won't use the CONTINUE statement regulary.

But the bitmap may not be in memory when you need it, therefore forcing it to be recreated.
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