MySQL Forums
Forum List  »  Performance

Re: Queries locking up
Posted by: Rick James
Date: May 08, 2013 08:50PM

This one index will work well for both SELECTs:
INDEX(item_type_id, has_photo, normalized_time)
(Or you could swap the first two fields in that 'compound' index.)

> Need some recommendations on getting the queries improved. Please help!

Learn more about indexes:
http://mysql.rjweb.org/doc.php/index1

Other tips:
http://mysql.rjweb.org/doc.php/ricksrots

Options: ReplyQuote


Subject
Views
Written By
Posted
2209
May 07, 2013 01:13PM
Re: Queries locking up
920
May 08, 2013 08:50PM
814
May 09, 2013 10:09PM
987
May 11, 2013 11:29PM
722
May 15, 2013 09:33PM


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.