Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8662819a
Commit
8662819a
authored
Jul 10, 2020
by
Dmitry Gruzd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid eager-loading of group associations
parent
4c6b1d16
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
ee/app/models/ee/project.rb
ee/app/models/ee/project.rb
+1
-1
ee/changelogs/unreleased/fix-n-plus-1-for-project-search.yml
ee/changelogs/unreleased/fix-n-plus-1-for-project-search.yml
+5
-0
No files found.
ee/app/models/ee/project.rb
View file @
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
...
...
ee/changelogs/unreleased/fix-n-plus-1-for-project-search.yml
0 → 100644
View file @
8662819a
---
title
:
Avoid N+1 of group associations in Search
merge_request
:
36544
author
:
type
:
performance
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment