Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is faster, locate or seek ?
Message
 
To
10/03/2000 13:58:25
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00344153
Message ID:
00344346
Views:
21
>>if seek(5, "TableAlias", "myCheckNumber ")
>> locate for myId = 3 and between(myDate, dDate1, dDate2) while myCheckNumber = 5
>>endif
>
>Hmmm.. Using both FOR and WHILE ? I really doubt if rushmore kicks in here and uses the MyId index. I'd rather choose for making a composite index if speed really is a requirement.

I would agree in some situations. If this is a once a year routine that will only take a few seconds, I wouldn't worry about it. But if it is something used more frequently, a composite index might would make more sense.

As always, different situations call for different solutions.

Take care,

Joe
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Reply
Map
View

Click here to load this message in the networking platform