makandra / active_type

Make any Ruby object quack like ActiveRecord
MIT License
1.09k stars 74 forks source link

wrap activerecord call in a with_connection block so we don't leak a db connection #79

Closed cotcomsol closed 7 years ago

cotcomsol commented 7 years ago

At least when running in production under passenger, without this, our app leaks a database connection for each passenger instance. The connection is only used during initialization of the stack and then sits idle forever.

triskweline commented 7 years ago

Thanks, released as 0.6.5.