Commit 2c1a1e56 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch '43134-reduce-queries-pipelines-controller-show' into 'master'

Resolve "Controller Projects::PipelinesController#show executes more than 100 SQL queries"

Closes #43134

See merge request gitlab-org/gitlab-ce!17168
parents 86f451cc aa1b7f2d
......@@ -13,7 +13,7 @@ module Ci
belongs_to :pipeline_schedule, class_name: 'Ci::PipelineSchedule'
has_many :stages
has_many :statuses, class_name: 'CommitStatus', foreign_key: :commit_id
has_many :statuses, class_name: 'CommitStatus', foreign_key: :commit_id, inverse_of: :pipeline
has_many :builds, foreign_key: :commit_id
has_many :trigger_requests, dependent: :destroy, foreign_key: :commit_id # rubocop:disable Cop/ActiveRecordDependent
has_many :variables, class_name: 'Ci::PipelineVariable'
......
---
title: Improve performance of pipeline page by reducing DB queries
merge_request: 17168
author:
type: performance
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment