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
186810bc
Commit
186810bc
authored
Jul 24, 2020
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make issue_type index partial (incident only)
parent
d0f12452
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
db/migrate/20200721043502_add_issue_type_index_to_issues.rb
db/migrate/20200721043502_add_issue_type_index_to_issues.rb
+6
-1
db/structure.sql
db/structure.sql
+1
-1
No files found.
db/migrate/20200721043502_add_issue_type_index_to_issues.rb
View file @
186810bc
...
...
@@ -6,8 +6,13 @@ class AddIssueTypeIndexToIssues < ActiveRecord::Migration[6.0]
DOWNTIME
=
false
disable_ddl_transaction!
INCIDENT_TYPE
=
1
INDEX_NAME
=
'index_issues_on_incident_issue_type'
def
up
add_concurrent_index
:issues
,
:issue_type
add_concurrent_index
:issues
,
:issue_type
,
where:
"issue_type =
#{
INCIDENT_TYPE
}
"
,
name:
INDEX_NAME
end
def
down
...
...
db/structure.sql
View file @
186810bc
...
...
@@ -19697,7 +19697,7 @@ CREATE INDEX index_issues_on_description_trigram ON public.issues USING gin (des
CREATE
INDEX
index_issues_on_duplicated_to_id
ON
public
.
issues
USING
btree
(
duplicated_to_id
)
WHERE
(
duplicated_to_id
IS
NOT
NULL
);
CREATE
INDEX
index_issues_on_i
ssue_type
ON
public
.
issues
USING
btree
(
issue_type
);
CREATE
INDEX
index_issues_on_i
ncident_issue_type
ON
public
.
issues
USING
btree
(
issue_type
)
WHERE
(
issue_type
=
1
);
CREATE
INDEX
index_issues_on_last_edited_by_id
ON
public
.
issues
USING
btree
(
last_edited_by_id
);
...
...
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