BigW Consortium Gitlab

Commit 66f91aac by 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
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