summaryrefslogtreecommitdiff
path: root/app/finders
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-09-10 18:43:15 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2017-10-04 22:49:41 +0200
commit79cc3c8e3e7938ea53459e34ca585ae66791199e (patch)
tree59b51c70d1ed62b26a185efa6687257202de0629 /app/finders
parentbb5187bb2a71f87b3ff49388f70dbcb27dfe4c6a (diff)
downloadgitlab-ce-79cc3c8e3e7938ea53459e34ca585ae66791199e.tar.gz
Limit the amount of queries per row
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/group_children_finder.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/finders/group_children_finder.rb b/app/finders/group_children_finder.rb
index bac3fb208d0..07b97163c62 100644
--- a/app/finders/group_children_finder.rb
+++ b/app/finders/group_children_finder.rb
@@ -65,7 +65,7 @@ class GroupChildrenFinder
base_groups
end
groups = groups
- groups.sort(params[:sort])
+ groups.sort(params[:sort]).includes(:route)
end
def base_projects
@@ -86,6 +86,6 @@ class GroupChildrenFinder
else
base_projects
end
- projects.sort(params[:sort])
+ projects.sort(params[:sort]).includes(:route, :namespace)
end
end