MySQL Forums
Forum List  »  Newbie

Re: Help interpreting EXPLAIN results
Posted by: Peter Brawley
Date: November 18, 2015 03:45PM

It's a left join, it needs to read all left table rows.

The engine can use one table index in such a query. If you can do with the zero counts, you could try it as an inner join. You could try a covering index(regionid, productid, id, sold), playing with the order till the engine likes it.

Options: ReplyQuote


Subject
Written By
Posted
November 18, 2015 03:19AM
November 18, 2015 03:37PM
Re: Help interpreting EXPLAIN results
November 18, 2015 03:45PM


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.