docs(evidence): add track two dataset, explain plans and chat identifiers
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
# EXPLAIN (ANALYZE, BUFFERS) для истории сообщений
|
||||
# date: 2026-10-02T11:01:11Z
|
||||
# chat_id: cf9e8ca9-d08c-41d1-b55f-18c9fba43aec
|
||||
# date: 2026-10-02T11:28:14Z
|
||||
# chat_id: 349f1aef-3bbc-42d1-8724-e8d22b8c2253
|
||||
|
||||
## Ключевой запрос пагинации
|
||||
QUERY PLAN
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Limit (cost=0.29..4.38 rows=50 width=73) (actual time=0.021..0.029 rows=50 loops=1)
|
||||
Buffers: shared hit=3
|
||||
-> Index Scan using messages_chat_created_id_idx on messages (cost=0.29..819.43 rows=10000 width=73) (actual time=0.020..0.025 rows=50 loops=1)
|
||||
Index Cond: (chat_id = 'cf9e8ca9-d08c-41d1-b55f-18c9fba43aec'::uuid)
|
||||
Buffers: shared hit=3
|
||||
QUERY PLAN
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Limit (cost=0.42..8.05 rows=50 width=69) (actual time=0.025..0.042 rows=50 loops=1)
|
||||
Buffers: shared hit=45
|
||||
-> Index Scan using messages_chat_created_id_idx on messages (cost=0.42..8419.02 rows=55133 width=69) (actual time=0.024..0.038 rows=50 loops=1)
|
||||
Index Cond: (chat_id = '349f1aef-3bbc-42d1-8724-e8d22b8c2253'::uuid)
|
||||
Buffers: shared hit=45
|
||||
Planning:
|
||||
Buffers: shared hit=111
|
||||
Planning Time: 0.694 ms
|
||||
Execution Time: 0.063 ms
|
||||
Buffers: shared hit=109
|
||||
Planning Time: 0.611 ms
|
||||
Execution Time: 0.064 ms
|
||||
(9 rows)
|
||||
|
||||
|
||||
@@ -28,6 +28,6 @@
|
||||
## Оценка размера и количества
|
||||
estimated_rows | total_size
|
||||
----------------+------------
|
||||
10222 | 2264 kB
|
||||
110222 | 25 MB
|
||||
(1 row)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user