Skip to content

Prepare async index for pipeline_id_convert_to_bigint

Tianwen Chen requested to merge 412865-add-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_pipelines.auto_canceled_by_id_convert_to_bigint as the foreign key constraint requires the index so that we can later swap auto_canceled_by_id_convert_to_bigint with auto_canceled_by_id

This follows the process for migrating to bigint as documented in https://docs.gitlab.com/ee/development/database/avoiding_downtime_in_migrations.html#swap-the-columns-release-n--1

Backfill is finished. See https://gitlab.slack.com/archives/C101F3796/p1693875967110609

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 #422808 (closed)

Edited by Tianwen Chen

Merge request reports