diff options
author | Stan Hu <stanhu@gmail.com> | 2018-10-31 12:51:11 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-11-01 07:19:54 -0700 |
commit | 0844ba04b518b4cd0a326a2ee0e8431eeb26950d (patch) | |
tree | e38a47efb50d4e701559ccb628cb009c3344f35d /danger | |
parent | 98a504ecbb45907517ae465018906af7ef4573de (diff) | |
download | gitlab-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 'danger')
0 files changed, 0 insertions, 0 deletions