N+1 Queries: How to Spot One Before Production Does
The page was fast with twenty rows and takes nine seconds with two thousand. Nothing is slow on its own — there are just two thousand of it. How to find an N+1, why eager loading is not always the fix, and the four that hide.
Read article




