forked from mtusi2026/mtusi2026lab2
Перенести мессенджер в PostgreSQL и сессии в Redis.
Подтверждённые сообщения и действующие сессии переживают перезапуск, история читается по индексу, копия восстанавливается в новый том.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
Limit (cost=2.65..122.42 rows=50 width=66) (actual time=0.042..0.064 rows=50 loops=1)
|
||||
Buffers: shared hit=259
|
||||
-> Incremental Sort (cost=2.65..8232.71 rows=3436 width=66) (actual time=0.042..0.061 rows=50 loops=1)
|
||||
Sort Key: created_at, id
|
||||
Presorted Key: created_at
|
||||
Full-sort Groups: 2 Sort Method: quicksort Average Memory: 29kB Peak Memory: 29kB
|
||||
Buffers: shared hit=259
|
||||
-> Index Scan using messages_created_only_idx on messages (cost=0.29..8078.09 rows=3436 width=66) (actual time=0.015..0.053 rows=51 loops=1)
|
||||
Index Cond: (created_at >= '2026-01-01 00:00:00.310001+00'::timestamp with time zone)
|
||||
Filter: ((chat_id = '9af8786b-05c3-4793-b29e-a0702fab01fc'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.310001+00'::timestamp with time zone, '50567333-6286-45dd-99db-ccbf6c94925b'::uuid)))
|
||||
Rows Removed by Filter: 205
|
||||
Buffers: shared hit=259
|
||||
Planning Time: 0.051 ms
|
||||
Execution Time: 0.073 ms
|
||||
Reference in New Issue
Block a user