diff options
| author | Andreas Brandl <abrandl@gitlab.com> | 2018-03-23 13:58:46 +0100 |
|---|---|---|
| committer | Andreas Brandl <abrandl@gitlab.com> | 2018-03-23 15:37:50 +0100 |
| commit | 783868e9faa1e3dff27765f8244dc59898a2f7b2 (patch) | |
| tree | c13296bff1c90461e2db7385b021630af9506849 /changelogs/unreleased/ab-43150-users-controller-show-query-limit.yml | |
| parent | 3cd95700d4ba4aa48c1d551e6982e9390594a1de (diff) | |
| download | gitlab-ce-783868e9faa1e3dff27765f8244dc59898a2f7b2.tar.gz | |
Remove N+1 query for Noteable association.ab-43150-users-controller-show-query-limit
For each event with `Event#target_type` of "Note",
we had a query to load the associated instance `noteable`.
For example, if `Note` was related to an issue, we'd load each `Issue`
with its own query (N+1 problem).
Closes #43150.
Diffstat (limited to 'changelogs/unreleased/ab-43150-users-controller-show-query-limit.yml')
| -rw-r--r-- | changelogs/unreleased/ab-43150-users-controller-show-query-limit.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/unreleased/ab-43150-users-controller-show-query-limit.yml b/changelogs/unreleased/ab-43150-users-controller-show-query-limit.yml new file mode 100644 index 00000000000..502c1176d2d --- /dev/null +++ b/changelogs/unreleased/ab-43150-users-controller-show-query-limit.yml @@ -0,0 +1,5 @@ +--- +title: Remove N+1 query for Noteable association. +merge_request: 17956 +author: +type: performance |
