Commit 66f91aac authored by Stan Hu's avatar Stan Hu

Fix N+1 query in loading pipelines in merge requests

From Bullet failures in !10263
parent 9fc17f6f
...@@ -210,7 +210,7 @@ module Ci ...@@ -210,7 +210,7 @@ module Ci
end end
def stuck? def stuck?
builds.pending.any?(&:stuck?) builds.pending.includes(:project).any?(&:stuck?)
end end
def retryable? 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