MySQL Forums
Forum List  »  Performance

Re: Join by date range unacceptably slow
Posted by: Peter Brawley
Date: May 15, 2017 05:55PM

MySQL version?

Run Explain on the query, then have a look at https://dev.mysql.com/doc/refman/5.7/en/range-optimization.html to see of you can find an index configuration that helps.

If you can't, or if you have an older version, you may have to accumulate the counts in a temp table, then do the updates from that.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Join by date range unacceptably slow
114
May 15, 2017 05:55PM


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.