diff options
author | micael.bergeron <micael.bergeron@solutionstlm.com> | 2017-09-12 15:49:01 -0400 |
---|---|---|
committer | micael.bergeron <micael.bergeron@solutionstlm.com> | 2017-09-12 15:49:01 -0400 |
commit | b376e5c80e3dc6f30dfcc06f6a63209381414f89 (patch) | |
tree | 5c329738b841e887ff9489d9021313adf983e65e /app/controllers/boards | |
parent | 53e632cbca5c9a304079721c26c140628c09e81c (diff) | |
download | gitlab-ce-b376e5c80e3dc6f30dfcc06f6a63209381414f89.tar.gz |
fix another N+1 query for label priorities34510-board-issues-sql-speedup
added a QueryRecorder for IssuesController#index.json
Diffstat (limited to 'app/controllers/boards')
-rw-r--r-- | app/controllers/boards/issues_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/boards/issues_controller.rb b/app/controllers/boards/issues_controller.rb index 1c33f9a69d8..0d74078645a 100644 --- a/app/controllers/boards/issues_controller.rb +++ b/app/controllers/boards/issues_controller.rb @@ -12,10 +12,10 @@ module Boards issues = issues.page(params[:page]).per(params[:per] || 20) make_sure_position_is_set(issues) issues = issues.preload(:project, - :labels, :milestone, :assignees, - :notes => [:award_emoji, :author] + labels: [:priorities], + notes: [:award_emoji, :author] ) render json: { |