MySQL Forums
Forum List  »  Optimizer & Parser

Re: Derived tables optimized differently than when directly queried?
Posted by: Björn Steinbrink
Date: October 26, 2006 05:33PM

I've filed a bug for that some time ago. http://bugs.mysql.com/bug.php?id=18493

That the explain output shows no possible keys means, that it cannot do a lookup using the key (without scanning the whole index). And in that case, it does an index scan, because all required values are found in the index (so it can avoid the full table scan), so it's using a key, but not in the usual way.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Derived tables optimized differently than when directly queried?
2115
October 26, 2006 05:33PM


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.