Commit graph

4 commits

Author SHA1 Message Date
Yorick Peterse
aef9f1eb94
Cache the number of forks of a project
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).
2017-08-14 18:00:28 +02:00
Douwe Maan
70b05a8377 Split up MergeRequestsController 2017-06-28 18:17:44 -05:00
Baldinof
a6b5b50e14 Fix incorrect variable name 2016-04-04 14:41:01 +00:00
Baldinof
fa4126acff Move unlink fork logic to a service 2016-03-22 15:34:35 +01:00