Fix: アカウント一覧、カスタム絵文字一覧画面を高速化 (#585)

* Change: アカウント一覧、カスタム絵文字一覧でCOUNTを発行しないように

* Add index

* Fix test
This commit is contained in:
KMY(雪あすか) 2024-02-18 07:45:42 +09:00 committed by GitHub
parent 0f680a21b4
commit 0a6e68255f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 24 additions and 9 deletions

View file

@ -9,7 +9,7 @@ module Admin
def index
authorize :account, :index?
@accounts = filtered_accounts.page(params[:page])
@accounts = filtered_accounts.page(params[:page]).without_count
@form = Form::AccountBatch.new
end