diff options
author | Ruben Davila <rdavila84@gmail.com> | 2017-03-15 16:24:45 -0500 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-04-14 15:20:55 +0200 |
commit | f41b693fc713ae1c212b2118b0fc2d67c519f4c6 (patch) | |
tree | c9e1ef24cf7aeb3d066e88af064f229dd62d43ac | |
parent | 0483019e9800dc1b4ef4493890f815f047b7c04e (diff) | |
download | gitlab-ce-f41b693fc713ae1c212b2118b0fc2d67c519f4c6.tar.gz |
Remove pushes count from usage ping payload
This query is constantly generating timeout errors on large installations and we don't
have a simple solution for now and also we don't think having this counter is
really critical.
-rw-r--r-- | lib/gitlab/usage_data.rb | 1 | ||||
-rw-r--r-- | spec/lib/gitlab/usage_data_spec.rb | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb index 234d8680545..e5c1407d8fe 100644 --- a/lib/gitlab/usage_data.rb +++ b/lib/gitlab/usage_data.rb @@ -32,7 +32,6 @@ module Gitlab merge_requests: MergeRequest.count, milestones: Milestone.count, notes: Note.count, - pushes: Event.code_push.count, pages_domains: PagesDomain.count, projects: Project.count, protected_branches: ProtectedBranch.count, diff --git a/spec/lib/gitlab/usage_data_spec.rb b/spec/lib/gitlab/usage_data_spec.rb index 8d2f086f0f5..badb8e3c7ae 100644 --- a/spec/lib/gitlab/usage_data_spec.rb +++ b/spec/lib/gitlab/usage_data_spec.rb @@ -41,7 +41,6 @@ describe Gitlab::UsageData do milestones notes projects - pushes pages_domains protected_branches releases |