gitlab-org--gitlab-foss/app/controllers/admin
Stan Hu b6125f7045 Fix fast admin counters not working when PostgreSQL has secondaries
This commit does a number of things:

1. Reduces the number of queries needed by perform a single query to get all
the tuples for the relevant rows.

2. Uses a transaction to query the tuple counts to ensure that the data
is retrieved from the primary.

Closes #46742
2018-05-25 22:58:43 -07:00
..
abuse_reports_controller.rb
appearances_controller.rb
application_controller.rb
application_settings_controller.rb Use ApplicationSetting.current_without_cache instead of ApplicationSetting.current where applicable 2018-05-23 16:14:43 +02:00
applications_controller.rb
background_jobs_controller.rb
broadcast_messages_controller.rb
cohorts_controller.rb
conversational_development_index_controller.rb
dashboard_controller.rb Fix fast admin counters not working when PostgreSQL has secondaries 2018-05-25 22:58:43 -07:00
deploy_keys_controller.rb
gitaly_servers_controller.rb
groups_controller.rb
health_check_controller.rb
hook_logs_controller.rb
hooks_controller.rb
identities_controller.rb
impersonation_tokens_controller.rb
impersonations_controller.rb
jobs_controller.rb
keys_controller.rb
labels_controller.rb
logs_controller.rb
projects_controller.rb
requests_profiles_controller.rb
runner_projects_controller.rb
runners_controller.rb
services_controller.rb
spam_logs_controller.rb
system_info_controller.rb
users_controller.rb