Limit by 200

This commit is contained in:
Chris Blanchard 2015-09-05 19:16:14 +01:00
parent fc7dd7286e
commit d4db1aafdf

View file

@ -48,7 +48,7 @@ class Topic < ActiveRecord::Base
FROM posts FROM posts
GROUP BY topic_id GROUP BY topic_id
ORDER BY max_id DESC ORDER BY max_id DESC
LIMIT 10) AS T LIMIT 200) AS T
INNER JOIN topics INNER JOIN topics
ON T.topic_id = topics.id ON T.topic_id = topics.id
INNER JOIN forums INNER JOIN forums