PlanetScale offers robust solutions for detecting and mitigating N+1 queries in Rails applications. This includes leveraging gems like Bullet for proactive discovery and utilizing Rails 6.1+'s `strict_loading` feature, which can be applied globally or selectively in development environments to raise errors on lazy loading. Additionally, the platform supports asynchronous association destruction (`dependent: :destroy_async`) to handle callbacks for dependent records without blocking the main thre
All PlanetScale trails