diff options
| author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-08-14 15:22:09 +0200 |
|---|---|---|
| committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-08-14 18:00:28 +0200 |
| commit | aef9f1eb9405e9bab92b15f5c99bf06eaf28a5d6 (patch) | |
| tree | 01ebae601e9df77c1b2887e0783b73b30f833b2b /changelogs | |
| parent | 21a6898b10ed75f6260e72467b9e1f839d48456c (diff) | |
| download | gitlab-ce-aef9f1eb9405e9bab92b15f5c99bf06eaf28a5d6.tar.gz | |
Cache the number of forks of a projectforks-count-cache
The number of forks of a project doesn't change very frequently and
running a COUNT(*) every time this information is requested can be quite
expensive. We also end up running such a COUNT(*) query at least twice
on the homepage of a project.
By caching this data and refreshing it when necessary we can reduce
project homepage loading times by around 60 milliseconds (based on the
timings of https://gitlab.com/gitlab-org/gitlab-ce).
Diffstat (limited to 'changelogs')
| -rw-r--r-- | changelogs/unreleased/forks-count-cache.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/unreleased/forks-count-cache.yml b/changelogs/unreleased/forks-count-cache.yml new file mode 100644 index 00000000000..da8c53c2abd --- /dev/null +++ b/changelogs/unreleased/forks-count-cache.yml @@ -0,0 +1,5 @@ +--- +title: Cache the number of forks of a project +merge_request: 13535 +author: +type: other |
