MySQL Forums
Forum List  »  Optimizer & Parser

Re: Can't understand why optimizer doesn't work properly :(
Posted by: KimSeong Loh
Date: July 23, 2007 07:21PM

Nothing wrong, it does need to scan all the rows in the outer query since the subquery is a dependant subquery and you do not have any where condition in the outer query.

How else do you expect this to be executed?

Draw the 2 tables on paper and see if you can find any better ways to do it manually by hand, if you cannot find a way, the server cannot either.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Can't understand why optimizer doesn't work properly :(
2374
July 23, 2007 07:21PM


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.