Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index and SQL statement pattern related to speed
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00663070
Message ID:
00663084
Vues:
16
Yes, they both will be slow because they don't use indexes. However, SELECT statement but with WHERE A + B = vp_A + vp_B will use your A+B index and run faster.
See 'Using Rushmore to Speed Data Access' in the help or at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fox7help/html/dgusing_rushmore_to_speed_data_access.asp to understand how indexes could speed up your queries.


>I have a general question that appears to have the answer of "keep the SELECT WHERE statement in the same pattern as your index." Any comments on the validity of this statement. Please comment.
>
>Example:
>If my index on a table is A + B
>(two chacter based fields to keep things simple) and I then have
>
>SELECT statement with WHERE B = vp_B AND A = vp_A
>
>will this run at the same speed as the same as
>
>SELECT statement but with WHERE A = vp_A AND B = vp_B
>
>Thanks
>Jon
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform