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
dacc714d
Commit
dacc714d
authored
Nov 26, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove projects index on mirror and mirror_last_update_at
parent
22ff93e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
ee/changelogs/unreleased/53991-remove-partial-index-for-projects.yml
...gs/unreleased/53991-remove-partial-index-for-projects.yml
+5
-0
ee/db/migrate/20181126125616_remove_projects_index_on_mirror_and_mirror_at.rb
...26125616_remove_projects_index_on_mirror_and_mirror_at.rb
+33
-0
No files found.
ee/changelogs/unreleased/53991-remove-partial-index-for-projects.yml
0 → 100644
View file @
dacc714d
---
title
:
Remove partial index for projects on mirror and mirror_last_update_at
merge_request
:
8585
author
:
type
:
performance
ee/db/migrate/20181126125616_remove_projects_index_on_mirror_and_mirror_at.rb
0 → 100644
View file @
dacc714d
# frozen_string_literal: true
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
RemoveProjectsIndexOnMirrorAndMirrorAt
<
ActiveRecord
::
Migration
[
5.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
remove_concurrent_index
(
*
index_arguments
)
end
def
down
add_concurrent_index
(
*
index_arguments
)
end
private
def
index_arguments
[
:projects
,
[
:mirror
,
:mirror_last_update_at
],
{
name:
'index_projects_on_mirror_and_mirror_last_update_at'
,
where:
'mirror'
}
]
end
end
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