Stop counting N+1 queries by eye — one rule finds them all
A list endpoint loads 50 orders. One query fetches the page. Then, to render each order's owner, the code fires one more lookup per row — fifty statements that read SELECT id, username, avatar FROM sys_user WHERE id = ? and differ only in the bound id. One sc…
DEV Community (dev.to)

