BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
50020499
Commit
50020499
authored
Feb 13, 2017
by
Yorick Peterse
Committed by
Regis
Feb 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'sh-add-labels-index' into 'master'
Add indices to improve loading of labels page Closes #25413 See merge request !9121
parent
0410ac53
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
sh-add-labels-index.yml
changelogs/unreleased/sh-add-labels-index.yml
+4
-0
20170210062829_add_index_to_labels_for_title_and_project.rb
...170210062829_add_index_to_labels_for_title_and_project.rb
+12
-0
schema.rb
db/schema.rb
+2
-0
No files found.
changelogs/unreleased/sh-add-labels-index.yml
0 → 100644
View file @
50020499
---
title
:
Add indices to improve loading of labels page
merge_request
:
author
:
db/migrate/20170210062829_add_index_to_labels_for_title_and_project.rb
0 → 100644
View file @
50020499
class
AddIndexToLabelsForTitleAndProject
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
change
add_concurrent_index
:labels
,
:title
add_concurrent_index
:labels
,
:project_id
end
end
db/schema.rb
View file @
50020499
...
...
@@ -581,6 +581,8 @@ ActiveRecord::Schema.define(version: 20170210075922) do
add_index
"labels"
,
[
"group_id"
,
"project_id"
,
"title"
],
name:
"index_labels_on_group_id_and_project_id_and_title"
,
unique:
true
,
using: :btree
add_index
"labels"
,
[
"type"
,
"project_id"
],
name:
"index_labels_on_type_and_project_id"
,
using: :btree
add_index
"labels"
,
[
"project_id"
],
name:
"index_labels_on_project_id"
,
using: :btree
add_index
"labels"
,
[
"title"
],
name:
"index_labels_on_title"
,
using: :btree
create_table
"lfs_objects"
,
force: :cascade
do
|
t
|
t
.
string
"oid"
,
null:
false
...
...
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