Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT statement executes very slow
Message
 
À
23/01/2009 17:42:25
Raza Malik
Universal Accounting Software
Edgewater, New Jersey, États-Unis
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 9 SP2
Divers
Thread ID:
01376652
Message ID:
01376661
Vues:
16
Do you have an index on itm_numb ?

If you have SET ANSI OFF, then you should be able to just use:
SELECT itm_numb,itm_desc FROM A WHERE itm_numb='STI'
which should take advantage of the index which you should then be able to confirm with the SYS(3054, command.


By using SUBSTR(itm_numb,3) you're not allowing RUSHMORE to optimize unless you specifically have an index on SUBSTR(itm_numb,3)
Brandon Harker
Sebae Data Solutions
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform