Flowdock
method

setup_shared_connection_pool

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: ActiveRecord::TestFixtures
setup_shared_connection_pool() private

Shares the writing connection pool with connections on other handlers.

In an application with a primary and replica the test fixtures need to share a connection pool so that the reading connection can see data in the open transaction on the writing connection.

Show source
Register or log in to add new notes.