MySQL Forums
Forum List  »  InnoDB

Re: Larger than expected tmp files querying InnoDB format database
Posted by: Rick James
Date: August 23, 2014 04:50PM

> What do you make of it?

Nothing yet, because:
> Warning: Server has not been running for at least 48hrs.
> It may not be safe to use these recommendations

> IN (SELECT ... LIMIT 0, 10)

Don't use that construct. Instead, JOIN to that subquery.

JOIN (SELECT ... LIMIT 0, 10) x ON x.id = civicrm_contribution.id

Performance will improve significantly and I think you can avoid "cannot support LIMIT within a subquery".

Using 1- or 2-letter aliases for table names would make the query less cluttered.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Larger than expected tmp files querying InnoDB format database
1088
August 23, 2014 04:50PM


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.