Реализована лабораторная 2 на оценку 4

This commit is contained in:
MacBook
2026-10-02 15:41:42 +03:00
parent 65003b6119
commit 6534f4de68
22 changed files with 1516 additions and 30 deletions
+24
View File
@@ -0,0 +1,24 @@
INSERT 0 0
INSERT 0 0
INSERT 0 0
DELETE 10000
INSERT 0 10000
ANALYZE
fixture_messages
------------------
10000
(1 row)
QUERY PLAN
---------------------------------------------------------------------------------------------------------------------------------------------------
Limit (cost=0.41..21.76 rows=50 width=68) (actual time=0.006..0.018 rows=50 loops=1)
Buffers: shared hit=102
-> Index Scan using messages_chat_history_idx on messages (cost=0.41..4271.07 rows=10000 width=68) (actual time=0.006..0.015 rows=50 loops=1)
Index Cond: (chat_id = '00000000-0000-4000-8000-000000000002'::uuid)
Buffers: shared hit=102
Planning:
Buffers: shared hit=24
Planning Time: 0.057 ms
Execution Time: 0.031 ms
(9 rows)