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
f0e08f74
Commit
f0e08f74
authored
Jul 15, 2020
by
Mike Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add index on packages_package_files file_store
parent
cca3a25e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
db/migrate/20200715202659_add_index_on_package_files_file_store.rb
...e/20200715202659_add_index_on_package_files_file_store.rb
+17
-0
db/structure.sql
db/structure.sql
+3
-0
No files found.
db/migrate/20200715202659_add_index_on_package_files_file_store.rb
0 → 100644
View file @
f0e08f74
# frozen_string_literal: true
class
AddIndexOnPackageFilesFileStore
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_concurrent_index
:packages_package_files
,
:file_store
end
def
down
remove_concurrent_index
:packages_package_files
,
:file_store
end
end
db/structure.sql
View file @
f0e08f74
...
...
@@ -19853,6 +19853,8 @@ CREATE INDEX index_packages_maven_metadata_on_package_id_and_path ON public.pack
CREATE
INDEX
index_packages_nuget_dl_metadata_on_dependency_link_id
ON
public
.
packages_nuget_dependency_link_metadata
USING
btree
(
dependency_link_id
);
CREATE
INDEX
index_packages_package_files_on_file_store
ON
public
.
packages_package_files
USING
btree
(
file_store
);
CREATE
INDEX
index_packages_package_files_on_package_id_and_file_name
ON
public
.
packages_package_files
USING
btree
(
package_id
,
file_name
);
CREATE
INDEX
index_packages_packages_on_name_trigram
ON
public
.
packages_packages
USING
gin
(
name
public
.
gin_trgm_ops
);
...
...
@@ -23864,6 +23866,7 @@ COPY "schema_migrations" (version) FROM STDIN;
20200713071042
20200713141854
20200713152443
20200715202659
20200716044023
20200716120419
\
.
...
...
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