netstormx Posted August 25, 2009 Share Posted August 25, 2009 How can i speed this up? It takes half a second which is way too long. SELECT ratings.rating_id,games.gameid as gamenumber,gametitle as gametitle,gameimage as gameimage,ROUND(AVG(ratings.rating_num),2) as rating FROM ratings,games WHERE games.gameid = ratings.rating_id AND caturl LIKE '%games%' GROUP BY rating_id ORDER BY rating DESC Link to comment https://forums.phpfreaks.com/topic/171746-speed-up-this-query/ Share on other sites More sharing options...
Mark Baker Posted August 25, 2009 Share Posted August 25, 2009 Look at the indexes on your ratings and games tables Link to comment https://forums.phpfreaks.com/topic/171746-speed-up-this-query/#findComment-905611 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.