Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sub-select speed issue
Message
De
21/11/2007 10:43:04
 
 
À
21/11/2007 05:26:19
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 XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01270387
Message ID:
01270491
Vues:
16
Thanks for your thoughts Thomas. I ended up doing essentially the same thing, but still within a single select. I dropped the sub-select, and replaced it with just the SUM(E.Field5), then I added another join to include the EFile table, and finished off with an appropriate “group by”.

I did some timing runs, keeping score with “set coverage”. For a base I used a fast (but incomplete) select that simply left out the EFile and EField5 references. I normalize all the times, and got the following results:

1.0 time units - The Base case without EField5 evaluation
8.2 time units - The sub-select version.
1.2 time units - The SUM() + join + “group by” version (described above).

I suspect that your approach would score about the same as my solution.

Bob
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform