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
90df7321
Commit
90df7321
authored
Nov 07, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove low selective indexes
parent
9b807a10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
15 deletions
+0
-15
db/migrate/20181106135939_add_index_to_deployments.rb
db/migrate/20181106135939_add_index_to_deployments.rb
+0
-10
db/schema.rb
db/schema.rb
+0
-5
No files found.
db/migrate/20181106135939_add_index_to_deployments.rb
View file @
90df7321
...
...
@@ -8,20 +8,10 @@ class AddIndexToDeployments < ActiveRecord::Migration
disable_ddl_transaction!
def
up
add_concurrent_index
:deployments
,
[
:project_id
,
:status
,
:id
]
add_concurrent_index
:deployments
,
[
:project_id
,
:status
,
:iid
]
add_concurrent_index
:deployments
,
[
:project_id
,
:status
,
:created_at
]
add_concurrent_index
:deployments
,
[
:environment_id
,
:status
,
:id
]
add_concurrent_index
:deployments
,
[
:environment_id
,
:status
,
:iid
]
add_concurrent_index
:deployments
,
[
:environment_id
,
:sha
]
end
def
down
remove_concurrent_index
:deployments
,
[
:project_id
,
:status
,
:id
]
remove_concurrent_index
:deployments
,
[
:project_id
,
:status
,
:iid
]
remove_concurrent_index
:deployments
,
[
:project_id
,
:status
,
:created_at
]
remove_concurrent_index
:deployments
,
[
:environment_id
,
:status
,
:id
]
remove_concurrent_index
:deployments
,
[
:environment_id
,
:status
,
:iid
]
remove_concurrent_index
:deployments
,
[
:environment_id
,
:sha
]
end
end
db/schema.rb
View file @
90df7321
...
...
@@ -833,15 +833,10 @@ ActiveRecord::Schema.define(version: 20181107054254) do
add_index
"deployments"
,
[
"deployable_type"
,
"deployable_id"
],
name:
"index_deployments_on_deployable_type_and_deployable_id"
,
using: :btree
add_index
"deployments"
,
[
"environment_id"
,
"id"
],
name:
"index_deployments_on_environment_id_and_id"
,
using: :btree
add_index
"deployments"
,
[
"environment_id"
,
"iid"
,
"project_id"
],
name:
"index_deployments_on_environment_id_and_iid_and_project_id"
,
using: :btree
add_index
"deployments"
,
[
"environment_id"
,
"sha"
],
name:
"index_deployments_on_environment_id_and_sha"
,
using: :btree
add_index
"deployments"
,
[
"environment_id"
,
"status"
,
"id"
],
name:
"index_deployments_on_environment_id_and_status_and_id"
,
using: :btree
add_index
"deployments"
,
[
"environment_id"
,
"status"
,
"iid"
],
name:
"index_deployments_on_environment_id_and_status_and_iid"
,
using: :btree
add_index
"deployments"
,
[
"environment_id"
,
"status"
],
name:
"index_deployments_on_environment_id_and_status"
,
using: :btree
add_index
"deployments"
,
[
"id"
],
name:
"partial_index_deployments_for_legacy_successful_deployments"
,
where:
"((finished_at IS NULL) AND (status = 2))"
,
using: :btree
add_index
"deployments"
,
[
"project_id"
,
"iid"
],
name:
"index_deployments_on_project_id_and_iid"
,
unique:
true
,
using: :btree
add_index
"deployments"
,
[
"project_id"
,
"status"
,
"created_at"
],
name:
"index_deployments_on_project_id_and_status_and_created_at"
,
using: :btree
add_index
"deployments"
,
[
"project_id"
,
"status"
,
"id"
],
name:
"index_deployments_on_project_id_and_status_and_id"
,
using: :btree
add_index
"deployments"
,
[
"project_id"
,
"status"
,
"iid"
],
name:
"index_deployments_on_project_id_and_status_and_iid"
,
using: :btree
add_index
"deployments"
,
[
"project_id"
,
"status"
],
name:
"index_deployments_on_project_id_and_status"
,
using: :btree
create_table
"emails"
,
force: :cascade
do
|
t
|
...
...
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