Each query of an N+1 is fast, so the slow query log never shows it. n1scan is a local proxy that watches your app's PostgreSQL traffic (or reads the server's logs in production) and flags N+1 loops in any language or ORM. It proves which query caused each loop, suggests the index from a read-only EXPLAIN and the fix in your ORM's terms, and fails CI only on new N+1s. Open source, one binary: npx n1scan demo