From 564eada45a92eab3fff3111da90789f532d10db3 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 9 Dec 2015 16:23:15 +1100 Subject: [PATCH] PERF: limit number of user actions retrieved to a saner page size --- app/controllers/user_actions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/user_actions_controller.rb b/app/controllers/user_actions_controller.rb index 6a823e7e541..1299c8d9836 100644 --- a/app/controllers/user_actions_controller.rb +++ b/app/controllers/user_actions_controller.rb @@ -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?))