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
1a57204e
Commit
1a57204e
authored
Jul 21, 2020
by
Alishan Ladhani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimize counts.terraform_reports usage ping counter
(cherry picked from commit
c32430c6
)
parent
304eb13b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
0 deletions
+26
-0
changelogs/unreleased/230437-usage-data-optimize-counts-terraform_reports.yml
...d/230437-usage-data-optimize-counts-terraform_reports.yml
+5
-0
db/post_migrate/20200811211536_add_index_to_ci_job_artifacts_for_terraform_reports_id.rb
...add_index_to_ci_job_artifacts_for_terraform_reports_id.rb
+18
-0
db/schema_migrations/20200811211536
db/schema_migrations/20200811211536
+1
-0
db/structure.sql
db/structure.sql
+2
-0
No files found.
changelogs/unreleased/230437-usage-data-optimize-counts-terraform_reports.yml
0 → 100644
View file @
1a57204e
---
title
:
Optimize counts.terraform_reports usage ping counter
merge_request
:
39499
author
:
type
:
performance
db/post_migrate/20200811211536_add_index_to_ci_job_artifacts_for_terraform_reports_id.rb
0 → 100644
View file @
1a57204e
# frozen_string_literal: true
class
AddIndexToCiJobArtifactsForTerraformReportsId
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
INDEX_NAME
=
'index_ci_job_artifacts_id_for_terraform_reports'
disable_ddl_transaction!
def
up
add_concurrent_index
:ci_job_artifacts
,
:id
,
where:
'file_type = 18'
,
name:
INDEX_NAME
end
def
down
remove_concurrent_index_by_name
:ci_job_artifacts
,
INDEX_NAME
end
end
db/schema_migrations/20200811211536
0 → 100644
View file @
1a57204e
d4ea24092289f6dba294c502b8ce89748165973fb2d7989fa7615433599a0c0c
\ No newline at end of file
db/structure.sql
View file @
1a57204e
...
...
@@ -19203,6 +19203,8 @@ CREATE UNIQUE INDEX index_ci_instance_variables_on_key ON public.ci_instance_var
CREATE
INDEX
index_ci_job_artifacts_for_terraform_reports
ON
public
.
ci_job_artifacts
USING
btree
(
project_id
,
id
)
WHERE
(
file_type
=
18
);
CREATE
INDEX
index_ci_job_artifacts_id_for_terraform_reports
ON
public
.
ci_job_artifacts
USING
btree
(
id
)
WHERE
(
file_type
=
18
);
CREATE
INDEX
index_ci_job_artifacts_on_expire_at_and_job_id
ON
public
.
ci_job_artifacts
USING
btree
(
expire_at
,
job_id
);
CREATE
INDEX
index_ci_job_artifacts_on_file_store
ON
public
.
ci_job_artifacts
USING
btree
(
file_store
);
...
...
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