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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
3ce81ec6
Commit
3ce81ec6
authored
Sep 21, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Index projects on repository storage
parent
cfccb278
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
changelogs/unreleased/ee-add-project-repository-storages-index.yml
...s/unreleased/ee-add-project-repository-storages-index.yml
+5
-0
db/migrate/20170921115009_add_project_repository_storage_index.rb
...te/20170921115009_add_project_repository_storage_index.rb
+19
-0
db/schema.rb
db/schema.rb
+2
-1
No files found.
changelogs/unreleased/ee-add-project-repository-storages-index.yml
0 → 100644
View file @
3ce81ec6
---
title
:
Index projects on repository storage
merge_request
:
14414
author
:
type
:
other
db/migrate/20170921115009_add_project_repository_storage_index.rb
0 → 100644
View file @
3ce81ec6
class
AddProjectRepositoryStorageIndex
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_concurrent_index
(
*
index_spec
)
unless
index_exists?
(
*
index_spec
)
end
def
down
remove_concurrent_index
(
*
index_spec
)
if
index_exists?
(
*
index_spec
)
end
def
index_spec
[
:projects
,
:repository_storage
]
end
end
db/schema.rb
View file @
3ce81ec6
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201709
18223303
)
do
ActiveRecord
::
Schema
.
define
(
version:
201709
21115009
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -1230,6 +1230,7 @@ ActiveRecord::Schema.define(version: 20170918223303) do
add_index
"projects"
,
[
"path"
],
name:
"index_projects_on_path"
,
using: :btree
add_index
"projects"
,
[
"path"
],
name:
"index_projects_on_path_trigram"
,
using: :gin
,
opclasses:
{
"path"
=>
"gin_trgm_ops"
}
add_index
"projects"
,
[
"pending_delete"
],
name:
"index_projects_on_pending_delete"
,
using: :btree
add_index
"projects"
,
[
"repository_storage"
],
name:
"index_projects_on_repository_storage"
,
using: :btree
add_index
"projects"
,
[
"runners_token"
],
name:
"index_projects_on_runners_token"
,
using: :btree
add_index
"projects"
,
[
"star_count"
],
name:
"index_projects_on_star_count"
,
using: :btree
add_index
"projects"
,
[
"visibility_level"
],
name:
"index_projects_on_visibility_level"
,
using: :btree
...
...
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