Skip to content

Preload policy requirements for group projects count

Robert May requested to merge preload-project-permission-check into master

What does this MR do and why?

Preload policy requirements for group projects count. This should hopefully reduce the extreme number of queries being executed due to a looped permission check. As with many performance improvements, this will need to be checked in production, and this change is currently behind a disabled feature flag in order to allow that.

See !141280 (merged) for the precursor to this change, which delivered a huge performance improvement but revealed this new issue with the permission check.

Changelog: performance

Related #438146 (closed)

MR acceptance checklist

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

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Robert May

Merge request reports