Fix namespace issue preventing Ci::Build filtering optimization

What does this MR do and why?

Fix namespace issue preventing Ci::Build filtering optimization

The performance optimization introduced in !190206 (merged) is not being executed due to an incorrect model namespace resulting from mid-review refactoring.

This commit corrects the namespace to ensure Ci::Build entries are properly filtered, restoring the intended runtime reduction for the rake task on large installations.

Changelog: fixed

Testing

On a single node Omnibus install with 50k Ci::Builds with a niled token:

  • Omnibus GitLab 18.2.1 (unpatched): 9m30s
  • patched: 57s

This matches the results we saw/expected in !190206 (merged).

References

Closes Performance review for gitlab:doctor:secrets (#561774 - closed)

Relates Investigate gitlab:doctor:secrets rake task spe... (#518702 - closed)

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.

Edited by Clemens Beck

Merge request reports

Loading