summaryrefslogtreecommitdiff
path: root/changelogs/unreleased/ab-43150-users-controller-show-query-limit.yml
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-03-23 13:58:46 +0100
committerAndreas Brandl <abrandl@gitlab.com>2018-03-23 15:37:50 +0100
commit783868e9faa1e3dff27765f8244dc59898a2f7b2 (patch)
treec13296bff1c90461e2db7385b021630af9506849 /changelogs/unreleased/ab-43150-users-controller-show-query-limit.yml
parent3cd95700d4ba4aa48c1d551e6982e9390594a1de (diff)
downloadgitlab-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.yml5
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