Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ef996d89
Commit
ef996d89
authored
Jun 05, 2020
by
Alper Akgun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Harden users_created usage data queries
Optimize usage data query with start and finish parameters
parent
dd27e4a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
ee/changelogs/unreleased/220478-harden-users_created-usage-data-queries.yml
...leased/220478-harden-users_created-usage-data-queries.yml
+5
-0
ee/lib/ee/gitlab/usage_data.rb
ee/lib/ee/gitlab/usage_data.rb
+1
-1
No files found.
ee/changelogs/unreleased/220478-harden-users_created-usage-data-queries.yml
0 → 100644
View file @
ef996d89
---
title
:
Harden users_created usage data queries
merge_request
:
33956
author
:
type
:
performance
ee/lib/ee/gitlab/usage_data.rb
View file @
ef996d89
...
...
@@ -275,7 +275,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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment