Fix Error 500 viewing admin page due to statement timeouts
Uses PostgreSQL tuple estimates to provide a much faster yet approximate count. See https://wiki.postgresql.org/wiki/Slow_Counting for more details. We only use this fast method if the table has been analyzed or vacuumed within the last hour. Closes #46255
Showing
app/helpers/count_helper.rb
0 → 100644
lib/gitlab/database/count.rb
0 → 100644
Please register or sign in to comment