Skip to content

Move recursive namespace query to INNER JOIN [RUN ALL RSPEC] [RUN AS-IF-FOSS]

Adam Hegyi requested to merge move-recursive-ns-query-to-inner-join into master

What does this MR do?

This MR moves the recursive namespace CTE query within Namespace#all_projects from IN (QUERY) to INNER JOIN (QUERY).

Plans, and query examples: https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/12791#note_526772331

Note the change is behind a FF: recursive_namespace_lookup_as_inner_join

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Adam Hegyi

Merge request reports