active_record_host_pool
active_record_host_pool copied to clipboard
Create a separate pool for sharded connections
When we switch between sharded (using https://github.com/zendesk/active_record_shards) and non-sharded tables within ActiveRecord-related logic (for example, checking an Arturo flag within a serializer), the next request may go to the non-sharded database (select_db is skipped). To work around this, the connection pool logic has been extended to make separate pools for sharded databases.
cc @HeyNonster