Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to speed this loop and/or SQL up?
Message
De
18/03/2005 11:32:31
 
 
À
18/03/2005 11:01:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00997258
Message ID:
00997288
Vues:
12
>>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!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform