Commit 8662819a authored by Dmitry Gruzd's avatar Dmitry Gruzd

Avoid eager-loading of group associations

parent 4c6b1d16
......@@ -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