Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Big speed issues when making the jump to 9.0
Message
De
10/05/2005 14:06:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01012291
Message ID:
01012524
Vues:
16
Hello,

by all means try to avoid using ALLTRIM in your expressions .. FoxPro needs expressions that return fixed length results to be able to use indexes at all

(INDEX ON ALLTRIM(mem_no) will give you an error)

some tips to speed it up:

"INNER Join memcomments On Alltrim(Member.mem_no)=Alltrim (memcomments.mem_no);"

change to just
member.mem_no = memcomments.mem_no ..
or
member.mem_no == memcomments.mem_no

you have to test if this gives you the desired results since some SET settings change the way string comparisons behave .. (see SET EXACT, SET ANSI in help)

"Where Alltrim(memcommets.mem_no) = Alltrim('002191');"

alltrim('002191') ??? .. this makes no sense since there are no spaces to trim .. just use '002191'

so with plain indexes like
INDEX ON mem_no TAG someTag
on both of the tables the query should be at least partially optimizable

Regards
Christian
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform