Skip to content

Geo: Optimize repository and wiki verification counts

Michael Kozono requested to merge mk/optimize-repo-verification-counts into master

What does this MR do?

Optimizes the performance of these count queries, especially to avoid SQL timeouts on GitLab.com's Geo secondary:

  • count_verified_repositories
  • count_verified_wikis
  • count_verification_failed_repositories
  • count_verification_failed_wikis

Also I was able to remove 2 Project scopes which are not used anywhere else.

What are the relevant issue numbers?

Resolves https://gitlab.com/gitlab-org/gitlab-ee/issues/10279

Does this MR meet the acceptance criteria?

Edited by Michael Kozono

Merge request reports