mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-07 04:24:35 -04:00
PERF: one less query
This commit is contained in:
parent
9ba5d73ddf
commit
f6bc46937b
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class CurrentUserSerializer < BasicUserSerializer
|
|||
end
|
||||
|
||||
def topic_count
|
||||
object.topics.count
|
||||
object.user_stat.topic_count
|
||||
end
|
||||
|
||||
def reply_count
|
||||
|
|
Loading…
Add table
Reference in a new issue