Skip to content

Prepare async index for pipeline_id_convert_to_bigint

Tianwen Chen requested to merge 412869-create-async-index into master

What does this MR do and why?

As titled, this is the first step of creating indexes asynchronously. See guideline at https://docs.gitlab.com/ee/development/database/adding_database_indexes.html#schedule-the-index-to-be-created

It's to schedule the index creation for ci_sources_pipelines.pipeline_id_convert_to_bigint and ci_sources_pipelines.source_pipeline_id_convert_to_bigint as the foreign key constraint requires the index so that we can later swap pipeline_id_convert_to_bigint with pipeline_id

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #422826 (closed)

Edited by Tianwen Chen

Merge request reports