feat:report

This commit is contained in:
Оля Мороз
2026-10-09 17:22:18 +03:00
parent 9773639f52
commit 692cfec080
22 changed files with 292 additions and 18 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

+22
View File
@@ -0,0 +1,22 @@
QUERY PLAN
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Limit (cost=5.42..193.35 rows=51 width=178) (actual time=0.231..0.269 rows=51 loops=1)
Buffers: shared hit=18
InitPlan 1 (returns $0)
-> Limit (cost=5.00..5.00 rows=1 width=24) (actual time=0.144..0.145 rows=1 loops=1)
Buffers: shared hit=5
-> Sort (cost=5.00..5.50 rows=200 width=24) (actual time=0.144..0.144 rows=1 loops=1)
Sort Key: chats.created_at
Sort Method: top-N heapsort Memory: 25kB
Buffers: shared hit=5
-> Seq Scan on chats (cost=0.00..4.00 rows=200 width=24) (actual time=0.015..0.046 rows=200 loops=1)
Buffers: shared hit=2
-> Index Scan using idx_messages_chat_created_id on messages (cost=0.42..2763.99 rows=750 width=178) (actual time=0.230..0.262 rows=51 loops=1)
Index Cond: ((chat_id = $0) AND (ROW(created_at, id) > ROW('2000-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))
Buffers: shared hit=18
Planning:
Buffers: shared hit=130
Planning Time: 1.978 ms
Execution Time: 0.484 ms
(18 rows)
+23
View File
@@ -0,0 +1,23 @@
QUERY PLAN
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Limit (cost=5.42..12.15 rows=51 width=178) (actual time=0.258..0.290 rows=51 loops=1)
Buffers: shared hit=6 read=5
InitPlan 1 (returns $0)
-> Limit (cost=5.00..5.00 rows=1 width=24) (actual time=0.128..0.129 rows=1 loops=1)
Buffers: shared hit=5
-> Sort (cost=5.00..5.50 rows=200 width=24) (actual time=0.128..0.129 rows=1 loops=1)
Sort Key: chats.created_at
Sort Method: top-N heapsort Memory: 25kB
Buffers: shared hit=5
-> Seq Scan on chats (cost=0.00..4.00 rows=200 width=24) (actual time=0.019..0.044 rows=200 loops=1)
Buffers: shared hit=2
-> Index Only Scan using idx_messages_chat_covering on messages (cost=0.42..99.42 rows=750 width=178) (actual time=0.256..0.284 rows=51 loops=1)
Index Cond: ((chat_id = $0) AND (ROW(created_at, id) > ROW('2000-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))
Heap Fetches: 0
Buffers: shared hit=6 read=5
Planning:
Buffers: shared hit=152
Planning Time: 2.105 ms
Execution Time: 0.494 ms
(19 rows)
+3
View File
@@ -0,0 +1,3 @@
Timing is on.
INSERT 0 10000
Time: 901.418 ms
+3
View File
@@ -0,0 +1,3 @@
Timing is on.
INSERT 0 10000
Time: 1010.371 ms (00:01.010)
Binary file not shown.