Commit 37f59d65 authored by Jan Provaznik's avatar Jan Provaznik

Merge branch '208923-enable-batch-counting-for-some-individual-queries-4' into 'master'

Optimize projects_with_tracing_enabled query

See merge request gitlab-org/gitlab!27540
parents 492a658b f6f71496
......@@ -156,7 +156,7 @@ module EE
projects_reporting_ci_cd_back_to_github: count(::GithubService.without_defaults.active, batch: false),
projects_with_packages: count(::Packages::Package.select('distinct project_id'), batch: false),
projects_with_prometheus_alerts: count(PrometheusAlert.distinct_projects, batch: false),
projects_with_tracing_enabled: count(ProjectTracingSetting, batch: false),
projects_with_tracing_enabled: count(ProjectTracingSetting),
template_repositories: count(::Project.with_repos_templates, batch: false) + count(::Project.with_groups_level_repos_templates, batch: false)
},
service_desk_counts,
......
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