MySQL Forums
Forum List  »  Optimizer & Parser

Re: running running running
Posted by: Øystein Grøvlen
Date: January 31, 2012 07:54AM

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

Options: ReplyQuote


Subject
Views
Written By
Posted
1780
January 30, 2012 03:16AM
932
January 30, 2012 02:39AM
819
January 30, 2012 09:13AM
753
January 31, 2012 05:44AM
Re: running running running
881
January 31, 2012 07:54AM
944
January 31, 2012 03:10AM
905
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.