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:25:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
21/03/2005 07:02:40
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:
00997791
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.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform