PlanetScale
PlanetScale logoPlanetScale · Feature trail

N+1 Query Detection and Resolution

5 posts · Aug 2022 – Jan 2023

What this trail covers

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