PERF: limit number of user actions retrieved to a saner page size

This commit is contained in:
Sam 2015-12-09 16:23:15 +11:00
parent 2663b3775f
commit 564eada45a

View file

@ -4,7 +4,7 @@ class UserActionsController < ApplicationController
params.require(:username)
params.permit(:filter, :offset)
per_chunk = 60
per_chunk = 30
user = fetch_user_from_params(include_inactive: current_user.try(:staff?))