A query that was instant now takes seconds; CPU spiked.
Seq scan over a growing table (missing index or stale statistics).
EXPLAIN (ANALYZE, BUFFERS) SELECT ...;CREATE INDEX CONCURRENTLY ON orders (customer_id, created_at DESC);ANALYZE;Track pg_stat_statements; alert on p95 drift.
Spinning up a fresh box to reproduce or escape this error?
Managed cloud hostingNinjaOps publishes free engineering guides. Some outbound links are affiliate links: they cost you nothing and support the site.
Last reviewed 2026-10-02 · NinjaOps SEO grid · DevOps blog