Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to speed up this query
Message
 
 
To
10/03/2010 13:41:40
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01453791
Message ID:
01453793
Views:
85
Jerry,

Try the following:

1. Add NOFILTER clause to your query

2. Would it help to select from the Calls table first and then join with the second table?

e.g.

select T.*, Cust... from (select * from Calls where ...) T left join Cust on T.ID = Cust.ID

3. The DELETE() index may be a problem.

>I have a VFP9 Win App that uses the below query. How can I speed up this query?
>
>The SYS(3054, 1) reports that "Rushmore optimization level is Full" for both tables. But the query takes about 5 seconds to execute. One table has about 600,000 records and the other has about 50,000. The number of rows returned from the query should be around 40.
>
>Also, both tables have an index for "DELETED()" and each column being filtered has an index on that column.
>
>Any suggestions?
>
>Thanks,
>
>Jerry
>
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform