Partitioning: Swap project_daily_statistics table with partitioned copy in the model

Background

Related to: Source Code: Table Cleanup: Partition project_d... (&18879 - closed)

The project_daily_statistics table stores daily aggregated metrics for GitLab projects. Due to the rapidly increasing table size, we decided to partition this table to improve performance and manageability.

This is step 5 of the partitioning process. This step replaces the non-partitioned table with its partitioned copy, this should be used only after all other migration steps have completed successfully.

To-Do

resources:

  1. Swap the partitioned and non-partitioned tables (Release N+1)
Edited by 🤖 GitLab Bot 🤖