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
cc291d95
Commit
cc291d95
authored
Feb 23, 2021
by
Lee Tickett
Committed by
Adam Hegyi
Feb 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Temporary Index on Issues
parent
161745ea
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
2 deletions
+27
-2
changelogs/unreleased/321745-remove-temporary-index-idx_on_issues_where_service_desk_reply_to_i.yml
...ary-index-idx_on_issues_where_service_desk_reply_to_i.yml
+5
-0
db/migrate/20210216223335_remove_index_on_issues_where_service_desk_reply_to_is_not_null.rb
...ndex_on_issues_where_service_desk_reply_to_is_not_null.rb
+21
-0
db/schema_migrations/20210216223335
db/schema_migrations/20210216223335
+1
-0
db/structure.sql
db/structure.sql
+0
-2
No files found.
changelogs/unreleased/321745-remove-temporary-index-idx_on_issues_where_service_desk_reply_to_i.yml
0 → 100644
View file @
cc291d95
---
title
:
Remove temporary index on issues
merge_request
:
54387
author
:
Lee Tickett @leetickett
type
:
other
db/migrate/20210216223335_remove_index_on_issues_where_service_desk_reply_to_is_not_null.rb
0 → 100644
View file @
cc291d95
# frozen_string_literal: true
class
RemoveIndexOnIssuesWhereServiceDeskReplyToIsNotNull
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
INDEX_TABLE
=
:issues
INDEX_NAME
=
'idx_on_issues_where_service_desk_reply_to_is_not_null'
def
up
Gitlab
::
BackgroundMigration
.
steal
(
'PopulateIssueEmailParticipants'
)
remove_concurrent_index_by_name
INDEX_TABLE
,
INDEX_NAME
end
def
down
add_concurrent_index
(
INDEX_TABLE
,
[
:id
],
name:
INDEX_NAME
,
where:
'service_desk_reply_to IS NOT NULL'
)
end
end
db/schema_migrations/20210216223335
0 → 100644
View file @
cc291d95
52bf190bdb219366c790a5b7c081bfb383543498780cc95a25eafcecea036426
\ No newline at end of file
db/structure.sql
View file @
cc291d95
...
...
@@ -21355,8 +21355,6 @@ CREATE INDEX idx_mr_cc_diff_files_on_mr_cc_id_and_sha ON merge_request_context_c
CREATE UNIQUE INDEX idx_on_compliance_management_frameworks_namespace_id_name ON compliance_management_frameworks USING btree (namespace_id, name);
CREATE INDEX idx_on_issues_where_service_desk_reply_to_is_not_null ON issues USING btree (id) WHERE (service_desk_reply_to IS NOT NULL);
CREATE INDEX idx_packages_build_infos_on_package_id ON packages_build_infos USING btree (package_id);
CREATE INDEX idx_packages_debian_group_component_files_on_architecture_id ON packages_debian_group_component_files USING btree (architecture_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