Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to speed this loop and/or SQL up?
Message
From
18/03/2005 11:32:31
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00997258
Message ID:
00997288
Views:
11
>>To optimeze this, you need an index on ALLTRIM(RTE_NO), which is not advicabe, an index key must ALWAYS give a fixed length, which alltrim() does not give! A better solution is an index on ADDBS(RTE_NO,10) (adjust 10 if necessary), and this change in the select:
>>Select DISTINCT TIME from RZStop where ADDBS(RTE_NO,10)  = lcRteNo ...
>
>You meant PADR() right? :-)

Yes, I ment PADR(), I wrote the message when I was in a hurry, I had to leave to pick up at my son!
Previous
Reply
Map
View

Click here to load this message in the networking platform