Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Want speed up sql select
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00038612
Message ID:
00038614
Vues:
33
>I have two sql statement: >select * from postcode where ascen(addr_array,address) >This take several seconds each time. > >The other sql statement: >select * from postcode where atc(address,m.addr)#0 >also take several seconds. > >I want it take up to one second only, any suggestions? Try setting indexes to your specifications first, then do your SQL. Right now have SQL doing 'functions' during a search which will eat up time. IE. set you index to ascending order before the SQL in the first example. HTH, Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform