Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Full Optimize this
Message
 
 
À
07/03/2013 08:48:33
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:
01567710
Vues:
30
>>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 explicitly (matching the logic inside the CASE statement) and run each repeatedly to get into the measurable range. Compare those explicit tests to the macro tests. You'll see if there are any issues of performance when using a macro in this case.

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.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform