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
74e0a139
Commit
74e0a139
authored
Mar 10, 2022
by
Bala Kumar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add index on releases table to resolve cicd settings page timeout
Changelog: performance
parent
45a8ef8a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
db/post_migrate/20220310134207_add_index_project_id_and_released_at_and_id_on_releases.rb
...dd_index_project_id_and_released_at_and_id_on_releases.rb
+16
-0
db/schema_migrations/20220310134207
db/schema_migrations/20220310134207
+1
-0
db/structure.sql
db/structure.sql
+2
-0
No files found.
db/post_migrate/20220310134207_add_index_project_id_and_released_at_and_id_on_releases.rb
0 → 100644
View file @
74e0a139
# frozen_string_literal: true
class
AddIndexProjectIdAndReleasedAtAndIdOnReleases
<
Gitlab
::
Database
::
Migration
[
1.0
]
INDEX_NAME
=
'index_releases_on_project_id_and_released_at_and_id'
disable_ddl_transaction!
def
up
add_concurrent_index
:releases
,
[
:project_id
,
:released_at
,
:id
],
name:
INDEX_NAME
end
def
down
remove_concurrent_index_by_name
:releases
,
INDEX_NAME
end
end
db/schema_migrations/20220310134207
0 → 100644
View file @
74e0a139
951abe39e4735f0f71ac6ad1701ffa8688dfd82a59b0383d6c55cef8f6de8e7f
\ No newline at end of file
db/structure.sql
View file @
74e0a139
...
...
@@ -28821,6 +28821,8 @@ CREATE UNIQUE INDEX index_release_links_on_release_id_and_url ON release_links U
CREATE INDEX index_releases_on_author_id_id_created_at ON releases USING btree (author_id, id, created_at);
CREATE INDEX index_releases_on_project_id_and_released_at_and_id ON releases USING btree (project_id, released_at, id);
CREATE INDEX index_releases_on_project_id_and_tag ON releases USING btree (project_id, tag);
CREATE INDEX index_releases_on_released_at ON releases USING btree (released_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