Skip to content

Create routing table for ci_job_artifacts

Max Orefice requested to merge morefice/partition-ci-job-artifacts into master

Ref: #428986 (closed)

What does this MR do and why?

This MR creates the routing table for ci_job_artifacts.

It also refactors our ConvertTable helper to leverage our Gitlab::Database::PostgresForeignKey view while converting the table to a partitioned table.

Why are we doing this?

https://docs.gitlab.com/ee/development/database/partitioning/list.html#step-6---create-parent-table-and-attach-existing-table-as-the-initial-partition

Edited by Max Orefice

Merge request reports