PERF: limit number of user actions retrieved to a saner page size
This commit is contained in:
parent
2663b3775f
commit
564eada45a
|
@ -4,7 +4,7 @@ class UserActionsController < ApplicationController
|
||||||
params.require(:username)
|
params.require(:username)
|
||||||
params.permit(:filter, :offset)
|
params.permit(:filter, :offset)
|
||||||
|
|
||||||
per_chunk = 60
|
per_chunk = 30
|
||||||
|
|
||||||
user = fetch_user_from_params(include_inactive: current_user.try(:staff?))
|
user = fetch_user_from_params(include_inactive: current_user.try(:staff?))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue