PERF: one less query
This commit is contained in:
parent
9ba5d73ddf
commit
f6bc46937b
|
@ -42,7 +42,7 @@ class CurrentUserSerializer < BasicUserSerializer
|
|||
end
|
||||
|
||||
def topic_count
|
||||
object.topics.count
|
||||
object.user_stat.topic_count
|
||||
end
|
||||
|
||||
def reply_count
|
||||
|
|
Loading…
Reference in New Issue