diff options
author | Rémy Coutable <remy@rymai.me> | 2016-08-10 12:16:03 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-08-10 12:17:24 +0200 |
commit | 472a6a1c9deacafcba8569879df44039aa59a203 (patch) | |
tree | fe7456faeddd85e04b463f33c5a0cf46cff5648d | |
parent | 0f4ff69fb4a88b0d98105c60c653abb3c587cb65 (diff) | |
download | gitlab-ce-472a6a1c9deacafcba8569879df44039aa59a203.tar.gz |
Used cached value of project count to reduce DB load
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | app/views/admin/dashboard/index.html.haml | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG index 42d32e53685..f83d357e4c2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -90,6 +90,7 @@ v 8.11.0 (unreleased) - Sort folders with submodules in Files view !5521 v 8.10.5 (unreleased) + - Cache project count for 5 minutes to reduce DB load v 8.10.4 - Don't close referenced upstream issues from a forked project. diff --git a/app/views/admin/dashboard/index.html.haml b/app/views/admin/dashboard/index.html.haml index 452fc25ab07..e6687f43816 100644 --- a/app/views/admin/dashboard/index.html.haml +++ b/app/views/admin/dashboard/index.html.haml @@ -112,7 +112,7 @@ %h4 Projects .data = link_to admin_namespaces_projects_path do - %h1= number_with_delimiter(Project.count) + %h1= number_with_delimiter(Project.cached_count) %hr = link_to('New Project', new_project_path, class: "btn btn-new") .col-sm-4 |