You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Slow queries: every read or write query shape with an execution of --slow (default 100ms, 0 turns it off) or more is reported as slow,
with how many of its executions were slow, the longest, the average of all
of them and, with --dsn, a CREATE INDEX suggestion from the same
read-only EXPLAIN the N+1 findings use. Live as SLOW lines and rows in
the live screen, in the summary, in the JSON and Markdown reports (their own
table in the PR comment) and in the MCP tools. Schema changes, maintenance
and session commands (CREATE INDEX, VACUUM, COMMIT) are left out.
n1scan logs reports slow queries from the usual production setting
(log_min_duration_statement = 250ms or any value); finding N+1 loops still
needs every statement.
Slow queries never fail --ci by default (timings vary): --fail-kinds slow
fails on a query shape that was not slow in the baseline, and max_slow in .n1scan.yaml caps them per run or per route. A slow finding has its own
id, so a shape can be both an N+1 and slow.