forked from mtusi2026/mtusi2026lab2
Подтверждённые сообщения и действующие сессии переживают перезапуск, история читается по индексу, копия восстанавливается в новый том.
8 lines
546 B
Plaintext
8 lines
546 B
Plaintext
Limit (cost=0.42..10.31 rows=50 width=66) (actual time=0.009..0.019 rows=50 loops=1)
|
|
Buffers: shared hit=6
|
|
-> Index Scan using messages_chat_history_idx on messages (cost=0.42..6254.08 rows=31611 width=66) (actual time=0.009..0.016 rows=50 loops=1)
|
|
Index Cond: ((chat_id = '87a5ea91-8f1b-41ae-8ff7-8f67b1711963'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:06.2+00'::timestamp with time zone, '9ad9f914-0b9b-41f7-814d-284d3d4e85e9'::uuid)))
|
|
Buffers: shared hit=6
|
|
Planning Time: 0.045 ms
|
|
Execution Time: 0.027 ms
|