Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL: where vs. join
Message
De
11/08/2009 11:14:26
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01416873
Message ID:
01417321
Vues:
46
>>>I remembered this message #1042994 thus I thought since then that JOIN happens first.
>>
>>It might in Joins involving only a handful of records, which is an eficient filter in itself, but the (for my queries at least) standard way of optimizing is reducing set size via index.
>
>It would amaze me if it were done otherwise. The faster you can reduce the number of records being processed, the faster the overall query will be.

Imagine a join a to b, b to c. Now if table c has only one record, chances are that the operation is faster if you join b to c first and then check if filters can reduce the join from a to joined intermediate...

but tis is IMHO a fringe case.

regards

thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform