Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which query is faster?
Message
De
13/01/2001 14:58:13
 
 
À
13/01/2001 12:42:30
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00463375
Message ID:
00463405
Vues:
15
>>The answer depends on how big the tables are and the types of joins involved. Gnerally, three table joins will not cause problems. I think VFP supports up to seven table joins. In my experience, however, I have found that eanything over three tables tends to impact performance. The best thing to do is test each scenario and decide for yourself.
>
>It allows ten joins (and it took me twenty long minutes to discover what was wrong when I added four more cursors to join to, because the error message was sort of "suboptimally clear", as Microsoft would put it).
>
>IMO, any single scenario may play differently, depending on size of the tables, the compactness of the indexes etc. My rule-of-thumb is to pull the smallest possible cursor from the largest table first, and then join that to the rest. But then, I'm usually having one large table to join to several small lookups (most of the joins I'm dealing with are used to create flat tables for Crystal Reports) so this works for me most of the time.

Thanks for clearing that up!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform