MySQL Forums
Forum List  »  Optimizer & Parser

Re: Optimize sub query with large group by
Posted by: Rick James
Date: March 13, 2011 11:32PM

What determines "the most recent person to access any particular object" ? I see no timestamp. Maybe ID, if it is an AUTO_INCREMENT? But there is no ORDER BY.

It sounds like you need what I call the 'group by trick':,280124 (limiting rows returned),266585 (How does group by algorithm works?),236805 (Complex Select with Min/Max Syntax),400775 (Assistance required for query with subquery),396680 (Slow Query),394154 (Require help to formulate a query.),389565 (query returns unwanted duplicates),387554 (aggreate data),373984 (select max date in Inner Join),291994 (create function help),290067 (Help with minimum/group by),284734 (max function),272271 (Subquery and JOIN's),250033 (Listing threads by newest posts?)

Options: ReplyQuote

Written By
March 10, 2011 07:44PM
Re: Optimize sub query with large group by
March 13, 2011 11:32PM

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.