Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble optimizing a query
Message
From
17/02/2000 15:29:16
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00333643
Message ID:
00333669
Views:
10
>The fields used as join conditions are indexed in both tables and are both the same size and data type (char 15). Any one have an idea where to start looking?

I'm far from an expert, but i think if it's a complex join, you need to index the same way. ex: Join a..b on a.f1+a.f2 = b.f1+b.f2 you need to index on f1+f2.

If you already know this, it sounds dumb, but I learned the hard way: When creating the index, do NOT use the name.field convention - it'll make the index not optimizable. I took the table-name out of the index, and the optimization level of my query went from none to full. (use sys(3054,1) to enable the output of optimization levels, it's a useful diagnostic)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform