TLDR Web Dev · QUICK LINKS

THE UNEXPECTED DB CONNECTION POOL LEAK IN OUR RAILS APP

build.betterup.com5 min read

Summary from the TLDR Web Dev newsletter

A Rails application experienced an unexpected database connection pool leak due to a background thread within the Semantic Logger holding onto a connection while trying to resolve a lazy-loaded ActiveRecord relation, which was resolved by logging only primitive values and monitoring connection pool stats.