MySQL Forums
Forum List  »  Newbie

Re: Slow query. Why is it slow?
Posted by: Rick James
Date: May 19, 2013 06:27PM

AND `class` = '6'
AND `category` = 'E'
ORDER BY `products_table`.`id`

Would benefit from
INDEX(class, category, id)

We need to see CREATE TABLE products_status.

How big are these tables?

Options: ReplyQuote


Subject
Written By
Posted
May 19, 2013 06:35AM
Re: Slow query. Why is it slow?
May 19, 2013 06:27PM


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.