Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to Optimize my Select
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Trying to Optimize my Select
Divers
Thread ID:
00443007
Message ID:
00443007
Vues:
41
Here is a simple select statement:

select mtrandata.*,mtranitem.*,mtrancount.* ;
from mtrandata,mtranitem,mtrancount ;
where mtrandata.trandataid=mtranitem.trandataid and ;
mtranitem.trandataid=mtrancount.trandataid ;
INTO CURSOR TMPMERCH


Each of the tables have an index on TRANDATAID. When I run SYS(3054,11) it comes back with the following:

Rushmore optimization level for table mtrandata: none
Rushmore optimization level for table mtranitem: none
Rushmore optimization level for table mtrancount: none
Joining table mtranitem and table mtrancount using index tag Trandataid
Joining table mtrandata and intermediate result using temp index

I don't undertand why this join is not optimized. The fields joined are very simple and straight-forward.

Thank you for any help.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform