PERF: one less query

This commit is contained in:
Sam 2015-09-10 16:27:04 +10:00
parent 9ba5d73ddf
commit f6bc46937b
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class CurrentUserSerializer < BasicUserSerializer
end
def topic_count
object.topics.count
object.user_stat.topic_count
end
def reply_count