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
3bd17e2e
Commit
3bd17e2e
authored
May 29, 2020
by
Gosia Ksionek
Committed by
Tiger Watson
May 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add changelog entry
Fix schema file
parent
d56da39b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
changelogs/unreleased/218036-cannot-delete-account-on-gitlab-com.yml
...unreleased/218036-cannot-delete-account-on-gitlab-com.yml
+5
-0
db/migrate/20200526153844_add_issues_last_edited_by_id_index.rb
...rate/20200526153844_add_issues_last_edited_by_id_index.rb
+19
-0
db/structure.sql
db/structure.sql
+5
-0
No files found.
changelogs/unreleased/218036-cannot-delete-account-on-gitlab-com.yml
0 → 100644
View file @
3bd17e2e
---
title
:
Add index to issues and epics on last_edited_by_id
merge_request
:
33075
author
:
type
:
performance
db/migrate/20200526153844_add_issues_last_edited_by_id_index.rb
0 → 100644
View file @
3bd17e2e
# frozen_string_literal: true
class
AddIssuesLastEditedByIdIndex
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_concurrent_index
:issues
,
:last_edited_by_id
add_concurrent_index
:epics
,
:last_edited_by_id
end
def
down
remove_concurrent_index
:issues
,
:last_edited_by_id
remove_concurrent_index
:epics
,
:last_edited_by_id
end
end
db/structure.sql
View file @
3bd17e2e
...
@@ -9642,6 +9642,8 @@ CREATE INDEX index_epics_on_group_id_and_iid_varchar_pattern ON public.epics USI
...
@@ -9642,6 +9642,8 @@ CREATE INDEX index_epics_on_group_id_and_iid_varchar_pattern ON public.epics USI
CREATE
INDEX
index_epics_on_iid
ON
public
.
epics
USING
btree
(
iid
);
CREATE
INDEX
index_epics_on_iid
ON
public
.
epics
USING
btree
(
iid
);
CREATE
INDEX
index_epics_on_last_edited_by_id
ON
public
.
epics
USING
btree
(
last_edited_by_id
);
CREATE
INDEX
index_epics_on_lock_version
ON
public
.
epics
USING
btree
(
lock_version
)
WHERE
(
lock_version
IS
NULL
);
CREATE
INDEX
index_epics_on_lock_version
ON
public
.
epics
USING
btree
(
lock_version
)
WHERE
(
lock_version
IS
NULL
);
CREATE
INDEX
index_epics_on_parent_id
ON
public
.
epics
USING
btree
(
parent_id
);
CREATE
INDEX
index_epics_on_parent_id
ON
public
.
epics
USING
btree
(
parent_id
);
...
@@ -9876,6 +9878,8 @@ CREATE INDEX index_issues_on_description_trigram ON public.issues USING gin (des
...
@@ -9876,6 +9878,8 @@ 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_duplicated_to_id
ON
public
.
issues
USING
btree
(
duplicated_to_id
)
WHERE
(
duplicated_to_id
IS
NOT
NULL
);
CREATE
INDEX
index_issues_on_last_edited_by_id
ON
public
.
issues
USING
btree
(
last_edited_by_id
);
CREATE
INDEX
index_issues_on_lock_version
ON
public
.
issues
USING
btree
(
lock_version
)
WHERE
(
lock_version
IS
NULL
);
CREATE
INDEX
index_issues_on_lock_version
ON
public
.
issues
USING
btree
(
lock_version
)
WHERE
(
lock_version
IS
NULL
);
CREATE
INDEX
index_issues_on_milestone_id
ON
public
.
issues
USING
btree
(
milestone_id
);
CREATE
INDEX
index_issues_on_milestone_id
ON
public
.
issues
USING
btree
(
milestone_id
);
...
@@ -13959,6 +13963,7 @@ COPY "schema_migrations" (version) FROM STDIN;
...
@@ -13959,6 +13963,7 @@ COPY "schema_migrations" (version) FROM STDIN;
20200525114553
20200525114553
20200525121014
20200525121014
20200526120714
20200526120714
20200526153844
20200526164946
20200526164946
20200526164947
20200526164947
20200527094322
20200527094322
...
...
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