Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
gitlab-org
gitlab-exporter
Commits
bfa72dac
Commit
bfa72dac
authored
Jun 27, 2017
by
Z.J. van de Weg
Browse files
Remove unneeded row counts
parent
7432f590
Pipeline
#52645
failed with stage
in 1 minute and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
lib/gitlab_monitor/database/row_count.rb
lib/gitlab_monitor/database/row_count.rb
+0
-6
No files found.
lib/gitlab_monitor/database/row_count.rb
View file @
bfa72dac
...
...
@@ -8,19 +8,13 @@ module GitLab
# #construct_query
class
RowCountCollector
<
Base
QUERIES
=
{
groups:
{
select: :namespaces
,
where:
"type='Group'"
},
projects:
{
select: :projects
,
where:
"pending_delete=false"
},
soft_deleted_projects:
{
select: :projects
,
where:
"pending_delete=true"
},
orphaned_projects:
{
select: :projects
,
joins:
"LEFT JOIN namespaces ON projects.namespace_id = namespaces.id"
,
where:
"namespaces.id IS NULL"
},
personal_snippets:
{
select: :snippets
,
where:
"type='PersonalSnippet'"
},
project_snippets:
{
select: :snippets
,
where:
"type='ProjectSnippet'"
},
uploads:
{
select: :uploads
},
users:
{
select: :users
},
active_runners:
{
select: :ci_runners
,
where:
"active=true AND contacted_at >= NOW() - '1 day'::INTERVAL"
}
}.
freeze
def
run
...
...
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