Update container registry migration query
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.
- Old query plan before this change: https://console.postgres.ai/gitlab/gitlab-production-tunnel-pg12/sessions/10239/commands/36330
- New query plan with this change: https://console.postgres.ai/gitlab/gitlab-production-tunnel-pg12/sessions/10239/commands/36328
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