NAIVE INDEX (chat_id) ONLY

=== deep keyset page, offset 30000 ===
Limit  (cost=4289.63..4289.75 rows=50 width=141) (actual time=14.808..14.812 rows=50 loops=1)
  Buffers: shared hit=807 read=53
  ->  Sort  (cost=4289.63..4345.67 rows=22419 width=141) (actual time=14.807..14.809 rows=50 loops=1)
        Sort Key: created_at, id
        Sort Method: top-N heapsort  Memory: 37kB
        Buffers: shared hit=807 read=53
        ->  Bitmap Heap Scan on messages  (cost=667.51..3544.88 rows=22419 width=141) (actual time=2.133..12.038 rows=29999 loops=1)
              Recheck Cond: (chat_id = 'd64fec89-08a6-4948-acc3-4ca99ac54f5a'::uuid)
              Filter: (ROW(created_at, id) > ROW('2026-01-01 00:00:30.001+00'::timestamp with time zone, 'e77ba05c-13b1-46a4-ba9f-6f630e60f623'::uuid))
              Rows Removed by Filter: 30001
              Heap Blocks: exact=801
              Buffers: shared hit=801 read=53
              ->  Bitmap Index Scan on messages_chat_only_idx  (cost=0.00..661.90 rows=59948 width=0) (actual time=0.749..0.750 rows=60000 loops=1)
                    Index Cond: (chat_id = 'd64fec89-08a6-4948-acc3-4ca99ac54f5a'::uuid)
                    Buffers: shared read=53
Planning:
  Buffers: shared hit=101 read=1
Planning Time: 0.268 ms
Execution Time: 14.859 ms
