开发者

How can I improve this query to remove "Using Temporary" and "Using Filesort"

开发者 https://www.devze.com 2023-03-16 22:07 出处:网络
This qu开发者_StackOverflow中文版ery takes quite a long time to run, is there anything I could do to improve upon it?

This qu开发者_StackOverflow中文版ery takes quite a long time to run, is there anything I could do to improve upon it?

SELECT b.* FROM games_tags bt, games b, tags t 
WHERE bt.tag_id = t.tag_id AND (t.tag_text IN ('flash')) 
  AND b.gameid = bt.game_id AND b.status ='1' 
GROUP BY b.gameid ORDER by rating DESC limit 5952, 16


Please try using JOIN to join tables correctly in your query

0

精彩评论

暂无评论...
验证码 换一张
取 消