Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optimizing the Calculate function - with an index?
Message
 
 
À
02/02/2006 09:37:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Divers
Thread ID:
01092819
Message ID:
01092901
Vues:
18
Steve,

Tore already gave you the answer. I'd also add that write the expression like you'd see in an algebra text ( 10 < a < 15 ) in a SQL statement won't fully optimize:
select sum(b) ;
   from x ;
   where 10 < a and a < 15
10 < a won't optimize because the field is on the right hand side of the operator. a > 10 will optimize.

>The actual implementation of this example involves a much more complicated scenario, but I think this expresses the heart of my question.
>
>Calculate sum(b) for a > 10 and a < 15 to m_sum_b
>
>Will execution be speeded up if a is indexed?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform