BUGFIX: N+1 query when listing users in admin section
This commit is contained in:
parent
79c6bb718a
commit
b328fd0031
|
@ -53,6 +53,6 @@ class AdminUserIndexQuery
|
|||
end
|
||||
|
||||
def find_users
|
||||
find_users_query.take(100)
|
||||
find_users_query.includes(:user_stat).take(100)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue