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
521a0501
Commit
521a0501
authored
Sep 01, 2020
by
Giorgenes Gelatti
Committed by
Toon Claes
Sep 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds pkg index on (id,created_at)
parent
0d15c12f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
db/migrate/20200901203055_add_id_created_at_index_to_packages.rb
...ate/20200901203055_add_id_created_at_index_to_packages.rb
+19
-0
db/schema_migrations/20200901203055
db/schema_migrations/20200901203055
+1
-0
db/structure.sql
db/structure.sql
+2
-0
No files found.
db/migrate/20200901203055_add_id_created_at_index_to_packages.rb
0 → 100644
View file @
521a0501
# frozen_string_literal: true
class
AddIdCreatedAtIndexToPackages
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
INDEX_NAME
=
'index_packages_packages_on_id_and_created_at'
def
up
add_concurrent_index
:packages_packages
,
[
:id
,
:created_at
],
name:
INDEX_NAME
end
def
down
remove_concurrent_index_by_name
(
:packages_packages
,
INDEX_NAME
)
end
end
db/schema_migrations/20200901203055
0 → 100644
View file @
521a0501
eb13fb285ac9af83bbc66397a5352a824575ad4af93178b98fbfc1be2e11ce8b
\ No newline at end of file
db/structure.sql
View file @
521a0501
...
...
@@ -20463,6 +20463,8 @@ CREATE INDEX index_packages_package_files_on_package_id_and_file_name ON public.
CREATE
INDEX
index_packages_packages_on_creator_id
ON
public
.
packages_packages
USING
btree
(
creator_id
);
CREATE
INDEX
index_packages_packages_on_id_and_created_at
ON
public
.
packages_packages
USING
btree
(
id
,
created_at
);
CREATE
INDEX
index_packages_packages_on_name_trigram
ON
public
.
packages_packages
USING
gin
(
name
public
.
gin_trgm_ops
);
CREATE
INDEX
index_packages_packages_on_project_id_and_created_at
ON
public
.
packages_packages
USING
btree
(
project_id
,
created_at
);
...
...
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