Commit c9293b28 authored by Alina Mihaila's avatar Alina Mihaila Committed by Mayra Cabrera

Move Clusters::Application::Helm distinct_by_user to batch counting

parent 858c3de9
---
title: Move Clusters Application Helm to batch counting
merge_request: 28995
author:
type: performance
......@@ -203,7 +203,7 @@ module EE
def usage_activity_by_stage_configure(time_period)
{
clusters_applications_cert_managers: clusters_user_distinct_count(::Clusters::Applications::CertManager, time_period),
clusters_applications_helm: ::Clusters::Applications::Helm.where(time_period).distinct_by_user,
clusters_applications_helm: clusters_user_distinct_count(::Clusters::Applications::Helm, time_period),
clusters_applications_ingress: clusters_user_distinct_count(::Clusters::Applications::Ingress, time_period),
clusters_applications_knative: clusters_user_distinct_count(::Clusters::Applications::Knative, time_period),
clusters_disabled: distinct_count(::Clusters::Cluster.disabled.where(time_period), :user_id),
......
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