summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-05-10 23:10:37 -0700
committerStan Hu <stanhu@gmail.com>2018-05-10 23:20:48 -0700
commitdd3fc360d34bf00751c3fb8f5c49d214f129a6a6 (patch)
tree10c249edb0a202678fbb7d66fab602ec7cb4bea8
parent35816eb7be76aa1a26dcf2f9cfeddf7c60b2da26 (diff)
downloadgitlab-ce-sh-speed-up-admin-page.tar.gz
Improve performance of /admin page by limiting counters to 1000+sh-speed-up-admin-page
Closes #46255
-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