Commit fee49c99 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'fix-nplus-query-pipelines' into 'master'

Fix N+1 query in loading pipelines in merge requests

See merge request !10363
parents 9fc17f6f 66f91aac
......@@ -210,7 +210,7 @@ module Ci
end
def stuck?
builds.pending.any?(&:stuck?)
builds.pending.includes(:project).any?(&:stuck?)
end
def retryable?
......
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