Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rushmore
Message
De
24/05/2006 20:16:33
 
 
À
24/05/2006 19:41:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01124743
Message ID:
01124749
Vues:
13
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform