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
fda016ef
Commit
fda016ef
authored
Apr 06, 2021
by
Etienne Baqué
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added migration for temporary index on pages deployments
parent
33dc6e4b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
0 deletions
+26
-0
changelogs/unreleased/325285-tmp-index-to-file-store.yml
changelogs/unreleased/325285-tmp-index-to-file-store.yml
+5
-0
db/migrate/20210401134157_add_index_to_pages_deployments.rb
db/migrate/20210401134157_add_index_to_pages_deployments.rb
+18
-0
db/schema_migrations/20210401134157
db/schema_migrations/20210401134157
+1
-0
db/structure.sql
db/structure.sql
+2
-0
No files found.
changelogs/unreleased/325285-tmp-index-to-file-store.yml
0 → 100644
View file @
fda016ef
---
title
:
Add index on file_store for pages_deployments table
merge_request
:
58355
author
:
type
:
performance
db/migrate/20210401134157_add_index_to_pages_deployments.rb
0 → 100644
View file @
fda016ef
# frozen_string_literal: true
class
AddIndexToPagesDeployments
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
INDEX_NAME
=
'index_pages_deployments_on_file_store_and_id'
def
up
add_concurrent_index
:pages_deployments
,
[
:file_store
,
:id
],
name:
INDEX_NAME
end
def
down
remove_concurrent_index_by_name
:pages_deployments
,
INDEX_NAME
end
end
db/schema_migrations/20210401134157
0 → 100644
View file @
fda016ef
02f8ed673f87cb2528022d8352a1551b3c7250986d6dc387c1bbdfbc71123272
\ No newline at end of file
db/structure.sql
View file @
fda016ef
...
...
@@ -23457,6 +23457,8 @@ CREATE INDEX index_packages_tags_on_package_id_and_updated_at ON packages_tags U
CREATE INDEX index_pages_deployments_on_ci_build_id ON pages_deployments USING btree (ci_build_id);
CREATE INDEX index_pages_deployments_on_file_store_and_id ON pages_deployments USING btree (file_store, id);
CREATE INDEX index_pages_deployments_on_project_id ON pages_deployments USING btree (project_id);
CREATE INDEX index_pages_domain_acme_orders_on_challenge_token ON pages_domain_acme_orders USING btree (challenge_token);
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