Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is faster, locate or seek ?
Message
From
11/03/2000 01:47:21
Walter Meester
HoogkarspelNetherlands
 
 
To
10/03/2000 16:24:40
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00344153
Message ID:
00344546
Views:
18
Craig,

>>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.

I think you've got to read Thread #253099 Message #253203 and further. In this thread I take the exact same standpiont you do here. It turned out to be that Mike yearwood was right all along. You'll find a few references to FPA articles which explain the rushmore working.

>>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.

The bitmap HAS to be in memory because rushmore won't work when it's not. (not enough memory for optimization warning).

Walter,
Previous
Reply
Map
View

Click here to load this message in the networking platform