summaryrefslogtreecommitdiff
path: root/changelogs/unreleased
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-10-31 12:51:11 -0700
committerStan Hu <stanhu@gmail.com>2018-11-01 07:19:54 -0700
commit0844ba04b518b4cd0a326a2ee0e8431eeb26950d (patch)
treee38a47efb50d4e701559ccb628cb009c3344f35d /changelogs/unreleased
parent98a504ecbb45907517ae465018906af7ef4573de (diff)
downloadgitlab-ce-0844ba04b518b4cd0a326a2ee0e8431eeb26950d.tar.gz
Significantly cut memory usage and SQL queries when reloading diffs
By preloading certain models with the diff, we can eliminate many N+1 queries. For a push to the staging GitLab.com www-gitlab-com repository, this eliminates over 3000 SQL queries and appears to bring down the RSS usage by several gigabytes. Relates to https://gitlab.com/gitlab-org/gitlab-ce/issues/49703
Diffstat (limited to 'changelogs/unreleased')
-rw-r--r--changelogs/unreleased/sh-optimize-reload-diffs-service.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/unreleased/sh-optimize-reload-diffs-service.yml b/changelogs/unreleased/sh-optimize-reload-diffs-service.yml
new file mode 100644
index 00000000000..422102560ed
--- /dev/null
+++ b/changelogs/unreleased/sh-optimize-reload-diffs-service.yml
@@ -0,0 +1,5 @@
+---
+title: Significantly cut memory usage and SQL queries when reloading diffs
+merge_request: 22725
+author:
+type: performance