Files
2026-10-26 17:50:20 +03:00

17 lines
1.1 KiB
Plaintext

rows_in_chat: 10000
query: keyset page after the 50th message, LIMIT 51
QUERY PLAN
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Limit (cost=0.29..4.19 rows=51 width=58) (actual time=0.047..0.070 rows=51 loops=1)
Buffers: shared hit=4
-> Index Scan using messages_history_idx on messages (cost=0.29..762.42 rows=9950 width=58) (actual time=0.044..0.063 rows=51 loops=1)
Index Cond: ((chat_id = '49b53d26-7fad-40e0-8811-59eae519e639'::uuid) AND (ROW(created_at, id) > ROW('2024-01-01 00:00:00.00005+00'::timestamp with time zone, '38a04f80-174d-4233-ac1b-f319ea7668f3'::uuid)))
Buffers: shared hit=4
Planning:
Buffers: shared hit=106
Planning Time: 0.886 ms
Execution Time: 0.363 ms
(9 rows)