Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I optimize the intermediate result
Message
De
08/06/2001 18:49:33
 
 
À
08/06/2001 18:43:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00517267
Message ID:
00517268
Vues:
17
Sorry hit submit by mistake

>Here is sample code to illustrate the point.
Sys(3054,11)

Select * ;
    From Invoice ;
    Where ;
        InvoiceId = 3 And ;
        Between( InvoiceDate, {12/01/01}, {12/31/01} ) ;
    Into Cursor qroInvoices

Use Dbf("qroInvoices") Again In 0 Alias qInvoices
Select qInvoices
Index On InvoiceId Tag InvoiceId

Select ;
       qInvoices.*, ;
       InvoiceDetail.Amount ;
    From qInvoices ;
        Inner Join InvoiceDetail On ;
        qInvoices.InvoiceId = InvoiceDetail.InvoiceId ;
    Into Table InvoiceAmounts
I have an index on InvoiceDate I have an index on InvoiceId in both the Invoice and InvoiceDetail. I have an index on Deleted() in both the Invoice and InvoiceDetail.

Everything shows as fully optimized but one line which states:
Rushmore Optimization level for intermediate result: None

What do I need to do to get full optimization for the intermediate result?

TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform