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
20881133
Commit
20881133
authored
Apr 21, 2020
by
Tiger
Committed by
Adam Hegyi
May 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused WAF indexes from CI variables
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/30021
parent
8eff84b9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
4 deletions
+43
-4
changelogs/unreleased/remove-redundant-modsecurity-indexes.yml
...elogs/unreleased/remove-redundant-modsecurity-indexes.yml
+5
-0
db/migrate/20200421054930_remove_index_on_pipeline_id_from_ci_pipeline_variables.rb
...remove_index_on_pipeline_id_from_ci_pipeline_variables.rb
+18
-0
db/migrate/20200421054948_remove_index_on_pipeline_id_from_ci_variables.rb
...21054948_remove_index_on_pipeline_id_from_ci_variables.rb
+18
-0
db/structure.sql
db/structure.sql
+2
-4
No files found.
changelogs/unreleased/remove-redundant-modsecurity-indexes.yml
0 → 100644
View file @
20881133
---
title
:
Remove unused WAF indexes from CI variables
merge_request
:
30021
author
:
type
:
other
db/migrate/20200421054930_remove_index_on_pipeline_id_from_ci_pipeline_variables.rb
0 → 100644
View file @
20881133
# frozen_string_literal: true
class
RemoveIndexOnPipelineIdFromCiPipelineVariables
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
INDEX_NAME
=
'index_ci_pipeline_variables_on_pipeline_id'
disable_ddl_transaction!
def
up
remove_concurrent_index_by_name
:ci_pipeline_variables
,
INDEX_NAME
end
def
down
add_concurrent_index
:ci_pipeline_variables
,
:pipeline_id
,
name:
INDEX_NAME
,
where:
"key = 'AUTO_DEVOPS_MODSECURITY_SEC_RULE_ENGINE'"
end
end
db/migrate/20200421054948_remove_index_on_pipeline_id_from_ci_variables.rb
0 → 100644
View file @
20881133
# frozen_string_literal: true
class
RemoveIndexOnPipelineIdFromCiVariables
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
INDEX_NAME
=
'index_ci_variables_on_project_id'
disable_ddl_transaction!
def
up
remove_concurrent_index_by_name
:ci_variables
,
INDEX_NAME
end
def
down
add_concurrent_index
:ci_variables
,
:project_id
,
name:
INDEX_NAME
,
where:
"key = 'AUTO_DEVOPS_MODSECURITY_SEC_RULE_ENGINE'"
end
end
db/structure.sql
View file @
20881133
...
@@ -9338,8 +9338,6 @@ CREATE INDEX index_ci_pipeline_schedules_on_owner_id ON public.ci_pipeline_sched
...
@@ -9338,8 +9338,6 @@ CREATE INDEX index_ci_pipeline_schedules_on_owner_id ON public.ci_pipeline_sched
CREATE
INDEX
index_ci_pipeline_schedules_on_project_id
ON
public
.
ci_pipeline_schedules
USING
btree
(
project_id
);
CREATE
INDEX
index_ci_pipeline_schedules_on_project_id
ON
public
.
ci_pipeline_schedules
USING
btree
(
project_id
);
CREATE
INDEX
index_ci_pipeline_variables_on_pipeline_id
ON
public
.
ci_pipeline_variables
USING
btree
(
pipeline_id
)
WHERE
((
key
)::
text
=
'AUTO_DEVOPS_MODSECURITY_SEC_RULE_ENGINE'
::
text
);
CREATE
UNIQUE
INDEX
index_ci_pipeline_variables_on_pipeline_id_and_key
ON
public
.
ci_pipeline_variables
USING
btree
(
pipeline_id
,
key
);
CREATE
UNIQUE
INDEX
index_ci_pipeline_variables_on_pipeline_id_and_key
ON
public
.
ci_pipeline_variables
USING
btree
(
pipeline_id
,
key
);
CREATE
INDEX
index_ci_pipelines_config_on_pipeline_id
ON
public
.
ci_pipelines_config
USING
btree
(
pipeline_id
);
CREATE
INDEX
index_ci_pipelines_config_on_pipeline_id
ON
public
.
ci_pipelines_config
USING
btree
(
pipeline_id
);
...
@@ -9436,8 +9434,6 @@ CREATE INDEX index_ci_triggers_on_owner_id ON public.ci_triggers USING btree (ow
...
@@ -9436,8 +9434,6 @@ CREATE INDEX index_ci_triggers_on_owner_id ON public.ci_triggers USING btree (ow
CREATE
INDEX
index_ci_triggers_on_project_id
ON
public
.
ci_triggers
USING
btree
(
project_id
);
CREATE
INDEX
index_ci_triggers_on_project_id
ON
public
.
ci_triggers
USING
btree
(
project_id
);
CREATE
INDEX
index_ci_variables_on_project_id
ON
public
.
ci_variables
USING
btree
(
project_id
)
WHERE
((
key
)::
text
=
'AUTO_DEVOPS_MODSECURITY_SEC_RULE_ENGINE'
::
text
);
CREATE
UNIQUE
INDEX
index_ci_variables_on_project_id_and_key_and_environment_scope
ON
public
.
ci_variables
USING
btree
(
project_id
,
key
,
environment_scope
);
CREATE
UNIQUE
INDEX
index_ci_variables_on_project_id_and_key_and_environment_scope
ON
public
.
ci_variables
USING
btree
(
project_id
,
key
,
environment_scope
);
CREATE
UNIQUE
INDEX
index_cluster_groups_on_cluster_id_and_group_id
ON
public
.
cluster_groups
USING
btree
(
cluster_id
,
group_id
);
CREATE
UNIQUE
INDEX
index_cluster_groups_on_cluster_id_and_group_id
ON
public
.
cluster_groups
USING
btree
(
cluster_id
,
group_id
);
...
@@ -13885,6 +13881,8 @@ COPY "schema_migrations" (version) FROM STDIN;
...
@@ -13885,6 +13881,8 @@ COPY "schema_migrations" (version) FROM STDIN;
20200420172752
20200420172752
20200420172927
20200420172927
20200420201933
20200420201933
20200421054930
20200421054948
20200421092907
20200421092907
20200421111005
20200421111005
20200421233150
20200421233150
...
...
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