Skip to content
代码片段 群组 项目
提交 84a57dc9 编辑于 作者: drew cimino's avatar drew cimino 提交者: Adam Hegyi
浏览文件

Drop trace-inclusive artifact removal index from ci_job_artifacts

Changelog: performance
上级 1ad1bcd5
No related branches found
No related tags found
无相关合并请求
# frozen_string_literal: true
class DropBroaderExpiredArtifactIndex < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
TABLE_NAME = 'ci_job_artifacts'
INDEX_NAME = 'ci_job_artifacts_expire_at_unlocked_idx'
def up
remove_concurrent_index_by_name TABLE_NAME, INDEX_NAME
end
def down
add_concurrent_index TABLE_NAME, [:expire_at], where: 'locked = 0', name: INDEX_NAME
end
end
f8013613d3ef44ea94db805d1900e7796204eefe373d42151cfe8acd4948a608
\ No newline at end of file
...@@ -26445,8 +26445,6 @@ CREATE INDEX cadence_create_iterations_automation ON iterations_cadences USING b ...@@ -26445,8 +26445,6 @@ CREATE INDEX cadence_create_iterations_automation ON iterations_cadences USING b
   
CREATE INDEX ci_builds_gitlab_monitor_metrics ON ci_builds USING btree (status, created_at, project_id) WHERE ((type)::text = 'Ci::Build'::text); CREATE INDEX ci_builds_gitlab_monitor_metrics ON ci_builds USING btree (status, created_at, project_id) WHERE ((type)::text = 'Ci::Build'::text);
   
CREATE INDEX ci_job_artifacts_expire_at_unlocked_idx ON ci_job_artifacts USING btree (expire_at) WHERE (locked = 0);
CREATE INDEX code_owner_approval_required ON protected_branches USING btree (project_id, code_owner_approval_required) WHERE (code_owner_approval_required = true); CREATE INDEX code_owner_approval_required ON protected_branches USING btree (project_id, code_owner_approval_required) WHERE (code_owner_approval_required = true);
   
CREATE UNIQUE INDEX commit_user_mentions_on_commit_id_and_note_id_unique_index ON commit_user_mentions USING btree (commit_id, note_id); CREATE UNIQUE INDEX commit_user_mentions_on_commit_id_and_note_id_unique_index ON commit_user_mentions USING btree (commit_id, note_id);
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册