diff options
author | Greg Stark <stark@gitlab.com> | 2018-01-11 16:22:52 +0300 |
---|---|---|
committer | Greg Stark <stark@gitlab.com> | 2018-01-11 20:45:42 +0300 |
commit | b64b7d70038fcf38495f67bc2f9cb320c2c168e7 (patch) | |
tree | 3c27fcf014677507de71c08cb0ddaee94de65357 /app/controllers | |
parent | 2f585071cba37b2b85f3148460d98c415a1df2d8 (diff) |
Use simple Next/Prev paging for jobs to avoid large count queries on arbitrarily large sets of historical jobs
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/jobs_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/jobs_controller.rb b/app/controllers/projects/jobs_controller.rb index 4865ec3dfe5..8b54ba3ad7c 100644 --- a/app/controllers/projects/jobs_controller.rb +++ b/app/controllers/projects/jobs_controller.rb @@ -29,7 +29,7 @@ class Projects::JobsController < Projects::ApplicationController :project, :tags ]) - @builds = @builds.page(params[:page]).per(30) + @builds = @builds.page(params[:page]).per(30).without_count end def cancel_all |