gitlab-org--gitlab-foss/changelogs/unreleased/fix-routes-n-plus-one-in-user-autocomplete.yml
Sean McGivern c5f9b2be82 Remove N+1 queries from users autocomplete
Both of these were related to groups:

1. We need to preload routes (using the `with_route` scope) if we're
   going to get the group's path.
2. We were counting each group's members separately.

They're in the same commit because the spec for N+1 detection wouldn't
pass with only one of these fixes.
2019-03-25 12:12:44 +00:00

5 lines
140 B
YAML

---
title: Fix some N+1s in loading routes and counting members for groups in @-autocomplete
merge_request: 26491
author:
type: performance