forked from mtusi2026/mtusi2026lab2
Перенести мессенджер в PostgreSQL и сессии в Redis.
Подтверждённые сообщения и действующие сессии переживают перезапуск, история читается по индексу, копия восстанавливается в новый том.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
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
|
||||
Reference in New Issue
Block a user