Commit ac9e467e authored by Jan Provaznik's avatar Jan Provaznik

Merge branch '220478-harden-users_created-usage-data-queries' into 'master'

Harden users_created usage data queries

Closes #220478

See merge request gitlab-org/gitlab!33956
parents 4c1dff36 ef996d89
---
title: Harden users_created usage data queries
merge_request: 33956
author:
type: performance
......@@ -274,7 +274,7 @@ module EE
groups: distinct_count(::GroupMember.where(time_period), :user_id),
ldap_keys: distinct_count(::LDAPKey.where(time_period), :user_id),
ldap_users: distinct_count(::GroupMember.of_ldap_type.where(time_period), :user_id),
users_created: count(::User.where(time_period)),
users_created: count(::User.where(time_period), start: user_minimum_id, finish: user_maximum_id),
value_stream_management_customized_group_stages: count(::Analytics::CycleAnalytics::GroupStage.where(custom: true)),
projects_with_compliance_framework: count(::ComplianceManagement::ComplianceFramework::ProjectSettings),
ldap_servers: ldap_available_servers.size,
......
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