Skip to content

Update container registry migration query

Steve Abrams requested to merge sabrams-master-patch-93375 into master

What does this MR do and why?

Updates the container registry import_done_free count to include repositories created after the start of phase 2.

These repositories are considered as "done" since they do not need to be imported. We have a metric for total free imports, so in calculating the number of imports remaining, we are off by this difference.

The new query is less performant, with nearly double the buffer reads, but with a warmed cache, which I think we will see with the query running regularly, it is more reasonable: https://console.postgres.ai/gitlab/gitlab-production-tunnel-pg12/sessions/10239/commands/36332

Edited by Steve Abrams

Merge request reports