Commit ecb95ff0 authored by Michael Kozono's avatar Michael Kozono

Merge branch 'fix-n-plus-1-for-project-search' into 'master'

Avoid N+1 of group associations in Search

See merge request gitlab-org/gitlab!36544
parents 1521a31c 8662819a
......@@ -202,7 +202,7 @@ module EE
override :with_web_entity_associations
def with_web_entity_associations
super.preload(:compliance_framework_setting)
super.preload(:compliance_framework_setting, group: [:ip_restrictions, :saml_provider])
end
override :with_api_entity_associations
......
---
title: Avoid N+1 of group associations in Search
merge_request: 36544
author:
type: performance
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