Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimizing my query
Message
From
28/11/1997 10:34:14
 
 
To
26/11/1997 12:55:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00062387
Message ID:
00062718
Views:
47
>>First read Edward's reply to you, he has some very good points. Beyond that I have two suggestions, 1) make sure every table has an index on DELETED(), and 2) check SYS(3054,11) (note 11 and not 1 as the second argument). The 11 argument will cause SYS(3054) to report on the optimization of the join conditions as well as the where conditions.
>
>Here what I got with SYS(3054, 11):
>
>Joining table A and table B using index tag X
>Joining table C and table D using index tag Y
>Joining intermediate result and intermediate result using temp index
>
>It seem that the last join is the evil one since it's creating a temporary index.
>I will think about Edward's suggestions.
>
>Thanks for your help

This is what I expected as explained in my first posting. VFP is creating a temporary index
to do this join, causing the slow query speed.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform