Commit 54ad3b4a authored by alinamihaila's avatar alinamihaila

Move clusters app knative to batch counting

parent be62d061
---
title: Move Clusters Application Knative to batch counting
merge_request: 29003
author:
type: performance
......@@ -205,7 +205,7 @@ module EE
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_ingress: clusters_user_distinct_count(::Clusters::Applications::Ingress, time_period),
clusters_applications_knative: ::Clusters::Applications::Knative.where(time_period).distinct_by_user,
clusters_applications_knative: distinct_count(::Clusters::Applications::Knative.where(time_period).available.joins(:cluster), 'clusters.user_id'),
clusters_disabled: distinct_count(::Clusters::Cluster.disabled.where(time_period), :user_id),
clusters_enabled: distinct_count(::Clusters::Cluster.enabled.where(time_period), :user_id),
clusters_platforms_gke: distinct_count(::Clusters::Cluster.gcp_installed.enabled.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