add code for level 4

This commit is contained in:
Матвей
2026-10-08 19:08:55 +03:00
parent b158c88087
commit 13fa322ca2
21 changed files with 390 additions and 27 deletions
+14
View File
@@ -0,0 +1,14 @@
Date: 2026-10-08
Command: ./scripts/explain_history.sh
Dataset: 10,000 synthetic messages in one chat.
Query plan:
Limit (cost=0.29..4.20 rows=50 width=73) (actual time=0.006..0.010 rows=50 loops=1)
Buffers: shared hit=3
-> Index Scan using messages_chat_created_id_idx on messages (cost=0.29..783.39 rows=10000 width=73) (actual time=0.006..0.008 rows=50 loops=1)
Index Cond: (chat_id = 'bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb'::uuid)
Buffers: shared hit=3
Planning:
Buffers: shared hit=39
Planning Time: 0.099 ms
Execution Time: 0.016 ms