Resolve "Slow database queries with high number of pending builds"

What does this MR do and why?

This MR adds a limit to the pending builds query to not load a bigger than needed amount of pending builds.

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #565923 (closed)

Edited by Daniel Prause

Merge request reports

Loading