ЛР 2 — БПИ2303 — Морару — на 5 (трек 2)
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
TypeScript/Node API на PostgreSQL с сессиями в Valkey (AOF), миграции, compose-стенд, restart hook, тесты уровня 4 и эксперимент трека 2 (планы запроса на 240k сообщений, стоимость записи, backup/restore).
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
Limit (cost=11649.09..11655.04 rows=51 width=269) (actual time=31.363..35.221 rows=51 loops=1)
|
||||
Buffers: shared hit=9056
|
||||
-> Gather Merge (cost=11649.09..14602.13 rows=25310 width=269) (actual time=31.361..35.215 rows=51 loops=1)
|
||||
Workers Planned: 2
|
||||
Workers Launched: 2
|
||||
Buffers: shared hit=9056
|
||||
-> Sort (cost=10649.07..10680.71 rows=12655 width=269) (actual time=26.965..26.970 rows=42 loops=3)
|
||||
Sort Key: created_at, id
|
||||
Sort Method: top-N heapsort Memory: 57kB
|
||||
Buffers: shared hit=9056
|
||||
Worker 0: Sort Method: top-N heapsort Memory: 57kB
|
||||
Worker 1: Sort Method: top-N heapsort Memory: 57kB
|
||||
-> Parallel Bitmap Heap Scan on messages (cost=783.77..10226.87 rows=12655 width=269) (actual time=2.405..24.972 rows=10000 loops=3)
|
||||
Recheck Cond: (chat_id = '43815b30-3214-43ab-907b-8302428adf62'::uuid)
|
||||
Filter: (ROW(created_at, id) > ROW('2026-09-14 15:04:07.432+00'::timestamp with time zone, 'b4df760e-4412-48fc-90cc-814d6b6c9617'::uuid))
|
||||
Rows Removed by Filter: 10000
|
||||
Heap Blocks: exact=3179
|
||||
Buffers: shared hit=9026
|
||||
-> Bitmap Index Scan on exp_idx (cost=0.00..776.18 rows=60768 width=0) (actual time=3.679..3.680 rows=60000 loops=1)
|
||||
Index Cond: (chat_id = '43815b30-3214-43ab-907b-8302428adf62'::uuid)
|
||||
Buffers: shared hit=55
|
||||
Planning:
|
||||
Buffers: shared hit=134
|
||||
Planning Time: 0.990 ms
|
||||
Execution Time: 35.634 ms
|
||||
Reference in New Issue
Block a user