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
4596819a
Commit
4596819a
authored
Sep 14, 2020
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add index to security_findings on scan_id and deduplicated
parent
14ca0064
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
db/migrate/20200914183227_add_index_on_deduplicated_column_of_security_findings.rb
..._add_index_on_deduplicated_column_of_security_findings.rb
+18
-0
db/schema_migrations/20200914183227
db/schema_migrations/20200914183227
+1
-0
db/structure.sql
db/structure.sql
+2
-0
No files found.
db/migrate/20200914183227_add_index_on_deduplicated_column_of_security_findings.rb
0 → 100644
View file @
4596819a
# frozen_string_literal: true
class
AddIndexOnDeduplicatedColumnOfSecurityFindings
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
INDEX_NAME
=
'index_security_findings_on_scan_id_and_deduplicated'
disable_ddl_transaction!
def
up
add_concurrent_index
:security_findings
,
[
:scan_id
,
:deduplicated
],
name:
INDEX_NAME
end
def
down
remove_concurrent_index_by_name
:security_findings
,
INDEX_NAME
end
end
db/schema_migrations/20200914183227
0 → 100644
View file @
4596819a
570a7de82da3dabfd12f3099cdc028128d4b61a4ecf6edd4b3102031d914316c
\ No newline at end of file
db/structure.sql
View file @
4596819a
...
@@ -20960,6 +20960,8 @@ CREATE INDEX index_security_findings_on_project_fingerprint ON public.security_f
...
@@ -20960,6 +20960,8 @@ CREATE INDEX index_security_findings_on_project_fingerprint ON public.security_f
CREATE
INDEX
index_security_findings_on_scan_id
ON
public
.
security_findings
USING
btree
(
scan_id
);
CREATE
INDEX
index_security_findings_on_scan_id
ON
public
.
security_findings
USING
btree
(
scan_id
);
CREATE
INDEX
index_security_findings_on_scan_id_and_deduplicated
ON
public
.
security_findings
USING
btree
(
scan_id
,
deduplicated
);
CREATE
INDEX
index_security_findings_on_scanner_id
ON
public
.
security_findings
USING
btree
(
scanner_id
);
CREATE
INDEX
index_security_findings_on_scanner_id
ON
public
.
security_findings
USING
btree
(
scanner_id
);
CREATE
INDEX
index_security_findings_on_severity
ON
public
.
security_findings
USING
btree
(
severity
);
CREATE
INDEX
index_security_findings_on_severity
ON
public
.
security_findings
USING
btree
(
severity
);
...
...
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