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
a31d49c0
Commit
a31d49c0
authored
Jan 09, 2020
by
Tiger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused index on project_mirror_data
parent
a79cad41
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
+23
-2
changelogs/unreleased/remove-unused-project-import-state-index.yml
...s/unreleased/remove-unused-project-import-state-index.yml
+5
-0
db/migrate/20200108233040_remove_index_project_mirror_data_on_jid.rb
...20200108233040_remove_index_project_mirror_data_on_jid.rb
+17
-0
db/schema.rb
db/schema.rb
+1
-2
No files found.
changelogs/unreleased/remove-unused-project-import-state-index.yml
0 → 100644
View file @
a31d49c0
---
title
:
Remove unused index on project_mirror_data
merge_request
:
22647
author
:
type
:
performance
db/migrate/20200108233040_remove_index_project_mirror_data_on_jid.rb
0 → 100644
View file @
a31d49c0
# frozen_string_literal: true
class
RemoveIndexProjectMirrorDataOnJid
<
ActiveRecord
::
Migration
[
5.2
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
remove_concurrent_index
:project_mirror_data
,
:jid
end
def
down
add_concurrent_index
:project_mirror_data
,
:jid
end
end
db/schema.rb
View file @
a31d49c0
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
#
#
# It's strongly recommended that you check this file into your version control system.
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2020_01_08_
155731
)
do
ActiveRecord
::
Schema
.
define
(
version:
2020_01_08_
233040
)
do
# These are extensions that must be enabled in order to support this database
# These are extensions that must be enabled in order to support this database
enable_extension
"pg_trgm"
enable_extension
"pg_trgm"
...
@@ -3200,7 +3200,6 @@ ActiveRecord::Schema.define(version: 2020_01_08_155731) do
...
@@ -3200,7 +3200,6 @@ ActiveRecord::Schema.define(version: 2020_01_08_155731) do
t
.
text
"last_error"
t
.
text
"last_error"
t
.
datetime_with_timezone
"last_update_at"
t
.
datetime_with_timezone
"last_update_at"
t
.
datetime_with_timezone
"last_successful_update_at"
t
.
datetime_with_timezone
"last_successful_update_at"
t
.
index
[
"jid"
],
name:
"index_project_mirror_data_on_jid"
t
.
index
[
"last_successful_update_at"
],
name:
"index_project_mirror_data_on_last_successful_update_at"
t
.
index
[
"last_successful_update_at"
],
name:
"index_project_mirror_data_on_last_successful_update_at"
t
.
index
[
"last_update_at"
,
"retry_count"
],
name:
"index_project_mirror_data_on_last_update_at_and_retry_count"
t
.
index
[
"last_update_at"
,
"retry_count"
],
name:
"index_project_mirror_data_on_last_update_at_and_retry_count"
t
.
index
[
"next_execution_timestamp"
,
"retry_count"
],
name:
"index_mirror_data_on_next_execution_and_retry_count"
t
.
index
[
"next_execution_timestamp"
,
"retry_count"
],
name:
"index_mirror_data_on_next_execution_and_retry_count"
...
...
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