summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/admin/dashboard/index.html.haml16
-rw-r--r--changelogs/unreleased/sh-speed-up-admin-page.yml5
2 files changed, 13 insertions, 8 deletions
diff --git a/app/views/admin/dashboard/index.html.haml b/app/views/admin/dashboard/index.html.haml
index bbf0e0fb95c..1623ec61db4 100644
--- a/app/views/admin/dashboard/index.html.haml
+++ b/app/views/admin/dashboard/index.html.haml
@@ -39,35 +39,35 @@
%p
Forks
%span.light.pull-right
- = number_with_delimiter(ForkedProjectLink.count)
+ = limited_counter_with_delimiter(ForkedProjectLink)
%p
Issues
%span.light.pull-right
- = number_with_delimiter(Issue.count)
+ = limited_counter_with_delimiter(Issue)
%p
Merge Requests
%span.light.pull-right
- = number_with_delimiter(MergeRequest.count)
+ = limited_counter_with_delimiter(MergeRequest)
%p
Notes
%span.light.pull-right
- = number_with_delimiter(Note.count)
+ = limited_counter_with_delimiter(Note)
%p
Snippets
%span.light.pull-right
- = number_with_delimiter(Snippet.count)
+ = limited_counter_with_delimiter(Snippet)
%p
SSH Keys
%span.light.pull-right
- = number_with_delimiter(Key.count)
+ = limited_counter_with_delimiter(Key)
%p
Milestones
%span.light.pull-right
- = number_with_delimiter(Milestone.count)
+ = limited_counter_with_delimiter(Milestone)
%p
Active Users
%span.light.pull-right
- = number_with_delimiter(User.active.count)
+ = limited_counter_with_delimiter(User.active)
.col-md-4
.info-well
.well-segment.admin-well.admin-well-features
diff --git a/changelogs/unreleased/sh-speed-up-admin-page.yml b/changelogs/unreleased/sh-speed-up-admin-page.yml
new file mode 100644
index 00000000000..4db9329b52e
--- /dev/null
+++ b/changelogs/unreleased/sh-speed-up-admin-page.yml
@@ -0,0 +1,5 @@
+---
+title: Improve performance of /admin page by limiting counters to 1000+
+merge_request:
+author:
+type: performance