From 0f721f9f48c9430c11e9a93ffcde935b6dd5ba95 Mon Sep 17 00:00:00 2001 From: Matt Lott <mattlott@live.com> Date: Sun, 26 Oct 2014 17:11:47 -0700 Subject: [PATCH] Reducing user code problems view to recent 300 Loading 1000 took too long (~10min) in production. --- app/views/admin/UserCodeProblemsView.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/UserCodeProblemsView.coffee b/app/views/admin/UserCodeProblemsView.coffee index 008d4268c..3b2d7cc1c 100644 --- a/app/views/admin/UserCodeProblemsView.coffee +++ b/app/views/admin/UserCodeProblemsView.coffee @@ -28,7 +28,7 @@ module.exports = class UserCodeProblemsView extends RootView lastMonth.setMonth lastMonth.getMonth() - 1 conditions = [ - ['limit', 1000] + ['limit', 300] ['sort', '-created'] ['where', 'created'] ['gte', lastMonth.toString()]