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 /app/views/admin/dashboard/index.html.haml | |
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>
Diffstat (limited to 'app/views/admin/dashboard/index.html.haml')
-rw-r--r-- | app/views/admin/dashboard/index.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
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 |