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
bc2e3428
Commit
bc2e3428
authored
Apr 13, 2021
by
Yannis Roussos
Committed by
Andreas Brandl
Apr 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add index on web_hook_id to partitioned web_hook_logs
parent
20288722
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
0 deletions
+29
-0
changelogs/unreleased/323676-add-index-on-web-hook-id-to-partitioned-web-hook-logs.yml
...add-index-on-web-hook-id-to-partitioned-web-hook-logs.yml
+5
-0
db/migrate/20210413123832_add_index_on_web_hook_id_to_partitioned_web_hook_log.rb
...2_add_index_on_web_hook_id_to_partitioned_web_hook_log.rb
+21
-0
db/schema_migrations/20210413123832
db/schema_migrations/20210413123832
+1
-0
db/structure.sql
db/structure.sql
+2
-0
No files found.
changelogs/unreleased/323676-add-index-on-web-hook-id-to-partitioned-web-hook-logs.yml
0 → 100644
View file @
bc2e3428
---
title
:
Add index on web_hook_id to partitioned web_hook_logs
merge_request
:
59266
author
:
type
:
other
db/migrate/20210413123832_add_index_on_web_hook_id_to_partitioned_web_hook_log.rb
0 → 100644
View file @
bc2e3428
# frozen_string_literal: true
class
AddIndexOnWebHookIdToPartitionedWebHookLog
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
PartitioningMigrationHelpers
DOWNTIME
=
false
WEB_HOOK_ID_INDEX_NAME
=
'index_web_hook_logs_part_on_web_hook_id'
disable_ddl_transaction!
def
up
add_concurrent_partitioned_index
:web_hook_logs_part_0c5294f417
,
:web_hook_id
,
name:
WEB_HOOK_ID_INDEX_NAME
end
def
down
remove_concurrent_partitioned_index_by_name
:web_hook_logs_part_0c5294f417
,
WEB_HOOK_ID_INDEX_NAME
end
end
db/schema_migrations/20210413123832
0 → 100644
View file @
bc2e3428
d166250305c2939bea8cc1970faf50d86776d32270a80a429cce668a97280aad
\ No newline at end of file
db/structure.sql
View file @
bc2e3428
...
@@ -24258,6 +24258,8 @@ CREATE INDEX index_web_hook_logs_on_created_at_and_web_hook_id ON web_hook_logs
...
@@ -24258,6 +24258,8 @@ CREATE INDEX index_web_hook_logs_on_created_at_and_web_hook_id ON web_hook_logs
CREATE INDEX index_web_hook_logs_on_web_hook_id ON web_hook_logs USING btree (web_hook_id);
CREATE INDEX index_web_hook_logs_on_web_hook_id ON web_hook_logs USING btree (web_hook_id);
CREATE INDEX index_web_hook_logs_part_on_web_hook_id ON ONLY web_hook_logs_part_0c5294f417 USING btree (web_hook_id);
CREATE INDEX index_web_hooks_on_group_id ON web_hooks USING btree (group_id) WHERE ((type)::text = 'GroupHook'::text);
CREATE INDEX index_web_hooks_on_group_id ON web_hooks USING btree (group_id) WHERE ((type)::text = 'GroupHook'::text);
CREATE INDEX index_web_hooks_on_project_id ON web_hooks USING btree (project_id);
CREATE INDEX index_web_hooks_on_project_id ON web_hooks USING btree (project_id);
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