Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Full Optimize this
Message
De
07/03/2013 09:34:24
 
 
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
OS:
Windows 7
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01567687
Message ID:
01567711
Vues:
27
>>>I think someone told me to avoid macro, so i asked the alternate ?
>>To validate and for a speed comparison, create the three SQL expressions...
>I agree and I think for that particular case since macro is evaluated only once,
>there will be very small performance gain which may be not visible.


Of course.

My reply was more to teach that it's sometimes very easy for a person to test any possible performance issues, rather than sticking to a hard-and-fast rule. In this case Mk Sharma would find there is no measurable difference, even on hundreds of thousands of iterations. And, in general, the code design is very clean with the simple DO CASE above and SQL expression visible on the same page below.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform