chat_id=[synthetic-uuid]; messages_in_fixture=10000 Limit (cost=0.41..17.85 rows=50 width=70) (actual time=0.013..0.022 rows=50 loops=1) Buffers: shared hit=6 -> Index Scan using messages_history_idx on messages (cost=0.41..3506.77 rows=10057 width=70) (actual time=0.013..0.019 rows=50 loops=1) Index Cond: ((chat_id = '[synthetic-uuid]'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00+00'::timestamp with time zone, '[synthetic-uuid]'::uuid))) Buffers: shared hit=6 Planning: Buffers: shared hit=20 Planning Time: 0.215 ms Execution Time: 0.066 ms