MySQL Forums
Forum List  »  Performance

Queries locking up
Posted by: Thomas Kazarian
Date: May 07, 2013 01:13PM

The biggest performance hit on my site are these queries:

SELECT COUNT (*) FROM `item` WHERE item.item_type_id = ? AND item.has_photo = ?

SELECT item.* FROM `item` WHERE item.item_type_id = ? AND item.has_photo = ? ORDER BY normalized_time DESC LIMIT ?, ?

I'm wondering if a MySQL expert (like most of the people on these forums) were to see these queries do you instantly know they can be improved?

The queries are for Lionseek.com - I hate slow sites and I know the visitors do as well. Need some recommendations on getting the queries improved. Please help!

http://www.lionseek.com/locked.png



Edited 1 time(s). Last edit at 05/08/2013 09:21AM by Thomas Kazarian.

Options: ReplyQuote


Subject
Views
Written By
Posted
Queries locking up
2208
May 07, 2013 01:13PM
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.