MySQL Forums
Forum List  »  Optimizer & Parser

Re: Optimize sub query with large group by
Posted by: Alex K
Date: March 15, 2011 08:46PM

Thanks Oystein,
I was aware that the group by was just using the fact that the implementation chooses the first one. However this does not answer my question as to how to speed the query up.

The problem I am trying to solve is that the current implementation IS working but is just too slow. It takes several minutes to complete when the events table contains 10 million rows.

How would you suggest I rewrite the query to get the same result without using a quirk of the group by implementation. And is the new query any faster than the one I am using.

If there is no way to improve the speed of this query, Am I just going to have to live with the fact that it takes several minutes.

Options: ReplyQuote


Subject
Views
Written By
Posted
3876
March 10, 2011 07:44PM
Re: Optimize sub query with large group by
1591
March 15, 2011 08:46PM


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.