Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I optimize the intermediate result
Message
From
08/06/2001 18:49:33
 
 
To
08/06/2001 18:43:32
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00517267
Message ID:
00517268
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform