What an Active Record Connection Pool Actually Controls
A two-thread Active Record 8.1.4.1 reproduction shows a checkout timeout after the holder’s query has finished. Moving the wait outside its connection block lets the other thread proceed. A second experiment compares ordinary model lookups, outer connection blocks, and persistent leases from Base.connection.
https://railsrevelry.substack.com/p/what-an-active-record-connection-pool-actually-controls
Post a comment