Commit c26e7324 authored by Ruben Davila's avatar Ruben Davila

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.
parent 9a206ff1
...@@ -36,8 +36,6 @@ module Gitlab ...@@ -36,8 +36,6 @@ module Gitlab
merge_requests: MergeRequest.count, merge_requests: MergeRequest.count,
milestones: Milestone.count, milestones: Milestone.count,
notes: Note.count, notes: Note.count,
# Default scope causes this query to run for a long time
pushes: Event.unscoped.code_push.count,
pages_domains: PagesDomain.count, pages_domains: PagesDomain.count,
projects: Project.count, projects: Project.count,
protected_branches: ProtectedBranch.count, protected_branches: ProtectedBranch.count,
......
...@@ -53,7 +53,6 @@ describe Gitlab::UsageData do ...@@ -53,7 +53,6 @@ describe Gitlab::UsageData do
milestones milestones
notes notes
projects projects
pushes
pages_domains pages_domains
protected_branches protected_branches
releases releases
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment