Loading page content
Paste the output of EXPLAIN ANALYZE. Get back the most likely missing indexes, ordered by impact. Heuristic. Verify the suggestion against your actual data distribution before shipping.
CREATE INDEX CONCURRENTLY idx_orders_status_created_at ON orders (status, created_at);
CREATE INDEX CONCURRENTLY in production. Confirm column cardinality before adding indexes (low-cardinality boolean indexes usually make things worse). Run EXPLAIN ANALYZE again post-deployment to confirm.