Posted 17 days ago. Visible to the public. Linked content. Auto-destruct in 43 days

Updated: Using ActiveRecord with threads might use more database connections than you think

Updated the recommendation to always release connections explicititely by calling ActiveRecord::Base.clear_active_connections! right before your thread terminates.

While the Rails 4.2 API docs suggested that connections were released automatically, the current API docs no longer contain this wording.

Growing Rails Applications in Practice
Check out our new e-book:
Learn to structure large Ruby on Rails codebases with the tools you already know and love.

Owner of this card:

Avatar
Henning Koch
Last edit:
17 days ago
by Henning Koch
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Henning Koch to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more