Re: running running running
Hard to say whether it is correct, since I do not know what you want to achieve, but I do not think the queries are equivalent since you are replacing LEFT JOIN with INNER JOIN.
By the way, what is the '{OJ ...}' syntax? It is not something that MySQL will understand., AFAIK.
Long query optimization times may be caused by the optimizer evaluating very many query plans when a large number of tables are joined. This should be less of a problem when OUTER JOINS are used, but just to rule out this, you can try setting optimizer_search_depth variable to a low number (e.g., 4) to see if that helps.
Øystein Grøvlen,
Senior Principal Software Engineer,
MySQL Group, Oracle,
Trondheim, Norway
Subject
Views
Written By
Posted
2219
January 30, 2012 03:16AM
1227
January 30, 2012 02:39AM
1013
January 30, 2012 09:13AM
1000
January 31, 2012 05:44AM
Re: running running running
1110
January 31, 2012 07:54AM
1233
January 31, 2012 03:10AM
1190
January 31, 2012 05:00PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.