RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in