Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rushmore
Message
From
24/05/2006 20:16:33
 
 
To
24/05/2006 19:41:06
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01124743
Message ID:
01124749
Views:
9
Get rid of ALLTRIM and STR. The statement on the left side of the equal sign must EXACTLY match the index key. If you need to index a string of the number, use PADR.


>If I'm searching a lookup table with a command like:
>
>locate for alltrim(str(n)) = alltrim(strtran(crsTemp.fnode,"-","")) and ;
>	alltrim(st_name) <> alltrim(strtran(crsTemp.on_str,"-","")) and ;
>        alltrim(st_name)<>""
>
>
>how should the indexes be setup to maximize rushmore speed? Both tables are under 10000 records. The lookup loop will execute about 15000 times so I'm trying to speed it up as much as I can.
>
>Or perchance would an SQL select be a better option?
>
>Thanks for any wisdom.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform