Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's faster SEEK or SELECT
Message
From
06/11/2002 15:12:35
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
06/11/2002 14:59:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00719517
Message ID:
00719530
Views:
13
>Just a question I have in optimizing an application that I'm working on. What's faster a SEEK on an index or a SELECT with a WHERE statement

Hi Ed,

You can determine which is faster by timing a loop of about 100,000 iterations where your SEEK or SELECT statement is in the middle. Do you need to be on the record or just need the values? SELECT won't put you on the record but it will give you the values just as well as the SEEK. If you just want to know if the key value is there you can also use INDEXSEEK() which was created for this purpose.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform