Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Speed of SEEK, SEEK(), LOCATE, and SQL SELECT
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00235086
Message ID:
00235362
Views:
21
>>
>>I think Mike hit on the LOCATE delay -- it's not long enough to build an index on a large table (and where the index definitely exists), just a one or two second pause...
>
>It could be that for a LOCATE, that if an index is not found that it just does a sequential search. I know that in a SQL SELECT, Rushmore will sometimes build an index and sometimes not...it tries to figure out if it needs one.

But in this case, the initial LOCATE has a pause (it seems to be doing a rather slow search for the index, like it's considering the options, then zips to the record), and then subsequent CONTinues are instantaneous...and we're talking major table size here...well, I always use SEEKs programmatically anyway on these tables, so it's kind of moot that LOCATE may be a bit slower...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform