Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to speed this loop and/or SQL up?
Message
De
21/03/2005 08:31:39
 
 
À
21/03/2005 08:25:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
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 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00997258
Message ID:
00997792
Vues:
11
>>Tore
>>
>>Further to my last reply to this message, I've now tried the following, with NO improvement. This is totally baffling me that something can be so slow. Weird thing is I got it to go really fast on Friday then it reverted to impossibly slow again, and I can't see what changed in between.
>
>Perhaps you want to try the following. In principle, a condition like:
>
>
>...WHERE Field1 + Field2 + Field3 = Value1 + Value2 + Value3
>
>
>can be faster than a condition on:
>
>
>... WHERE Field1 = Value1 AND Field2 = Value2 AND Field3 = Value3
>
>
>... assuming you have al requried indices. In the first case, you would need a compound index with the expression Field1 + Field2 + Field3.

Two minds, one thought. That's why I asked Terry for the index expression.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform