Error 500 viewing admin page due to statement timeout on counting total notes (again)
This is https://gitlab.com/gitlab-org/gitlab-ce/issues/46255 happening again.
On GitLab.com the /admin
page is timing out due to statement timeouts counting the various different statistic values. Since we changed the autovacuum settings to vacuum/analyze less often, we no longer are using the tuple estimates.
I think we should move these count requests into an async request so we don't block the /admin
page from loading.
This issue covers both the frontend work to add the new component, plus the new backend API to return the data.
We might be able to take advantage of the SiteStatistic
work to track this.
Edited by Liam McAndrew