Выполнениие лабораторной работы на 5, трек 2.
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
pg_dump: 0.9 с, размер дампа: 6487754 байт
|
||||
в источнике теперь 115100 сообщений
|
||||
pg_restore (--jobs 4): 0.8 с; ANALYZE: 0.5 с; итого до готовности к работе: 1.3 с
|
||||
СОВПАДАЕТ: все контрольные суммы и числа строк идентичны
|
||||
сообщений в копии: 115000; в источнике: 115100; потеряно (записано после backup): 100
|
||||
сессия, созданная до backup, действует на копии: GET /users/me -> 200
|
||||
страницы истории большого чата через API (источник и копия) совпадают побайтно: 8 из 8
|
||||
@@ -0,0 +1,8 @@
|
||||
read:
|
||||
number of transactions actually processed: 62138 latency average = 0.643 ms tps = 6216.254799 (without initial connection time)
|
||||
number of transactions actually processed: 58790 latency average = 0.680 ms tps = 5881.725592 (without initial connection time)
|
||||
number of transactions actually processed: 67909 latency average = 0.589 ms tps = 6794.075551 (without initial connection time)
|
||||
write:
|
||||
number of transactions actually processed: 16847 latency average = 2.374 ms tps = 1685.193930 (without initial connection time)
|
||||
number of transactions actually processed: 16939 latency average = 2.361 ms tps = 1694.410526 (without initial connection time)
|
||||
number of transactions actually processed: 16557 latency average = 2.416 ms tps = 1655.868733 (without initial connection time)
|
||||
@@ -0,0 +1,8 @@
|
||||
read:
|
||||
number of transactions actually processed: 62256 latency average = 0.643 ms tps = 6218.755638 (without initial connection time)
|
||||
number of transactions actually processed: 63493 latency average = 0.630 ms tps = 6352.291929 (without initial connection time)
|
||||
number of transactions actually processed: 61567 latency average = 0.650 ms tps = 6149.124893 (without initial connection time)
|
||||
write:
|
||||
number of transactions actually processed: 16946 latency average = 2.362 ms tps = 1693.745167 (without initial connection time)
|
||||
number of transactions actually processed: 16641 latency average = 2.403 ms tps = 1664.848849 (without initial connection time)
|
||||
number of transactions actually processed: 16963 latency average = 2.358 ms tps = 1696.038471 (without initial connection time)
|
||||
@@ -0,0 +1,8 @@
|
||||
read:
|
||||
number of transactions actually processed: 2127 latency average = 18.819 ms tps = 212.554761 (without initial connection time)
|
||||
number of transactions actually processed: 2108 latency average = 18.988 ms tps = 210.654143 (without initial connection time)
|
||||
number of transactions actually processed: 2183 latency average = 18.340 ms tps = 218.100983 (without initial connection time)
|
||||
write:
|
||||
number of transactions actually processed: 16448 latency average = 2.432 ms tps = 1644.662835 (without initial connection time)
|
||||
number of transactions actually processed: 16916 latency average = 2.364 ms tps = 1691.860716 (without initial connection time)
|
||||
number of transactions actually processed: 16770 latency average = 2.386 ms tps = 1676.663158 (without initial connection time)
|
||||
@@ -0,0 +1,8 @@
|
||||
read:
|
||||
number of transactions actually processed: 59903 latency average = 0.667 ms tps = 5994.227418 (without initial connection time)
|
||||
number of transactions actually processed: 60383 latency average = 0.662 ms tps = 6041.275328 (without initial connection time)
|
||||
number of transactions actually processed: 56943 latency average = 0.702 ms tps = 5697.289368 (without initial connection time)
|
||||
write:
|
||||
number of transactions actually processed: 16061 latency average = 2.493 ms tps = 1604.783436 (without initial connection time)
|
||||
number of transactions actually processed: 16784 latency average = 2.382 ms tps = 1679.071629 (without initial connection time)
|
||||
number of transactions actually processed: 16241 latency average = 2.463 ms tps = 1623.989731 (without initial connection time)
|
||||
@@ -0,0 +1,67 @@
|
||||
--- Q1 первая страница большого чата (80 000), keyset
|
||||
QUERY PLAN
|
||||
---------------------------------------------------------------------------------
|
||||
Limit (actual rows=51 loops=1)
|
||||
Buffers: shared hit=55
|
||||
-> Index Only Scan using ix_t2_covering on messages (actual rows=51 loops=1)
|
||||
Index Cond: (chat_id = '60e7163e-605c-470b-81c0-820c332cfec7'::uuid)
|
||||
Heap Fetches: 51
|
||||
Buffers: shared hit=55
|
||||
Planning:
|
||||
Buffers: shared hit=161
|
||||
Planning Time: 0.806 ms
|
||||
Execution Time: 0.234 ms
|
||||
(10 rows)
|
||||
|
||||
--- Q2 страница из середины большого чата, keyset
|
||||
QUERY PLAN
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Limit (actual rows=51 loops=1)
|
||||
Buffers: shared hit=55
|
||||
-> Index Only Scan using ix_t2_covering on messages (actual rows=51 loops=1)
|
||||
Index Cond: ((chat_id = '60e7163e-605c-470b-81c0-820c332cfec7'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 11:06:24+00'::timestamp with time zone, '3126d0c5-166f-481e-96bf-c950463908dc'::uuid)))
|
||||
Heap Fetches: 51
|
||||
Buffers: shared hit=55
|
||||
Planning Time: 0.073 ms
|
||||
Execution Time: 0.230 ms
|
||||
(8 rows)
|
||||
|
||||
--- Q3 последняя страница большого чата, keyset
|
||||
QUERY PLAN
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Limit (actual rows=32 loops=1)
|
||||
Buffers: shared hit=35
|
||||
-> Index Only Scan using ix_t2_covering on messages (actual rows=32 loops=1)
|
||||
Index Cond: ((chat_id = '60e7163e-605c-470b-81c0-820c332cfec7'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 22:12:48+00'::timestamp with time zone, 'c8a497c3-78fd-44f5-8bc7-3abcc4d06d1d'::uuid)))
|
||||
Heap Fetches: 32
|
||||
Buffers: shared hit=35
|
||||
Planning Time: 0.077 ms
|
||||
Execution Time: 0.117 ms
|
||||
(8 rows)
|
||||
|
||||
--- Q4 маленький чат (5 сообщений)
|
||||
QUERY PLAN
|
||||
--------------------------------------------------------------------------------
|
||||
Limit (actual rows=5 loops=1)
|
||||
Buffers: shared hit=8
|
||||
-> Index Only Scan using ix_t2_covering on messages (actual rows=5 loops=1)
|
||||
Index Cond: (chat_id = 'a7223743-6f48-4880-9b67-0e0cc8635177'::uuid)
|
||||
Heap Fetches: 5
|
||||
Buffers: shared hit=8
|
||||
Planning Time: 0.067 ms
|
||||
Execution Time: 0.050 ms
|
||||
(8 rows)
|
||||
|
||||
--- Q5 середина большого чата, OFFSET 40000 (для сравнения с keyset)
|
||||
QUERY PLAN
|
||||
--------------------------------------------------------------------------------------
|
||||
Limit (actual rows=51 loops=1)
|
||||
Buffers: shared hit=40672
|
||||
-> Index Only Scan using ix_t2_covering on messages m (actual rows=40051 loops=1)
|
||||
Index Cond: (chat_id = '60e7163e-605c-470b-81c0-820c332cfec7'::uuid)
|
||||
Heap Fetches: 40051
|
||||
Buffers: shared hit=40672
|
||||
Planning Time: 0.056 ms
|
||||
Execution Time: 19.230 ms
|
||||
(8 rows)
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
--- Q1 первая страница большого чата (80 000), keyset
|
||||
QUERY PLAN
|
||||
------------------------------------------------------------------------------
|
||||
Limit (actual rows=51 loops=1)
|
||||
Buffers: shared hit=54
|
||||
-> Index Scan using ix_t2_hist on messages (actual rows=51 loops=1)
|
||||
Index Cond: (chat_id = '60e7163e-605c-470b-81c0-820c332cfec7'::uuid)
|
||||
Buffers: shared hit=54
|
||||
Planning:
|
||||
Buffers: shared hit=155
|
||||
Planning Time: 0.530 ms
|
||||
Execution Time: 0.300 ms
|
||||
(9 rows)
|
||||
|
||||
--- Q2 страница из середины большого чата, keyset
|
||||
QUERY PLAN
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Limit (actual rows=51 loops=1)
|
||||
Buffers: shared hit=54
|
||||
-> Index Scan using ix_t2_hist on messages (actual rows=51 loops=1)
|
||||
Index Cond: ((chat_id = '60e7163e-605c-470b-81c0-820c332cfec7'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 11:06:24+00'::timestamp with time zone, '3126d0c5-166f-481e-96bf-c950463908dc'::uuid)))
|
||||
Buffers: shared hit=54
|
||||
Planning Time: 0.088 ms
|
||||
Execution Time: 0.209 ms
|
||||
(7 rows)
|
||||
|
||||
--- Q3 последняя страница большого чата, keyset
|
||||
QUERY PLAN
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Limit (actual rows=32 loops=1)
|
||||
Buffers: shared hit=35
|
||||
-> Index Scan using ix_t2_hist on messages (actual rows=32 loops=1)
|
||||
Index Cond: ((chat_id = '60e7163e-605c-470b-81c0-820c332cfec7'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 22:12:48+00'::timestamp with time zone, 'c8a497c3-78fd-44f5-8bc7-3abcc4d06d1d'::uuid)))
|
||||
Buffers: shared hit=35
|
||||
Planning Time: 0.094 ms
|
||||
Execution Time: 0.131 ms
|
||||
(7 rows)
|
||||
|
||||
--- Q4 маленький чат (5 сообщений)
|
||||
QUERY PLAN
|
||||
------------------------------------------------------------------------------
|
||||
Limit (actual rows=5 loops=1)
|
||||
Buffers: shared hit=8
|
||||
-> Index Scan using ix_t2_hist on messages (actual rows=5 loops=1)
|
||||
Index Cond: (chat_id = 'a7223743-6f48-4880-9b67-0e0cc8635177'::uuid)
|
||||
Buffers: shared hit=8
|
||||
Planning Time: 0.114 ms
|
||||
Execution Time: 0.051 ms
|
||||
(7 rows)
|
||||
|
||||
--- Q5 середина большого чата, OFFSET 40000 (для сравнения с keyset)
|
||||
QUERY PLAN
|
||||
------------------------------------------------------------------------------
|
||||
Limit (actual rows=51 loops=1)
|
||||
Buffers: shared hit=40322
|
||||
-> Index Scan using ix_t2_hist on messages m (actual rows=40051 loops=1)
|
||||
Index Cond: (chat_id = '60e7163e-605c-470b-81c0-820c332cfec7'::uuid)
|
||||
Buffers: shared hit=40322
|
||||
Planning Time: 0.082 ms
|
||||
Execution Time: 20.350 ms
|
||||
(7 rows)
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
--- Q1 первая страница большого чата (80 000), keyset
|
||||
QUERY PLAN
|
||||
--------------------------------------------------------------------------------------
|
||||
Limit (actual rows=51 loops=1)
|
||||
Buffers: shared hit=1930
|
||||
-> Gather Merge (actual rows=51 loops=1)
|
||||
Workers Planned: 1
|
||||
Workers Launched: 1
|
||||
Buffers: shared hit=1930
|
||||
-> Sort (actual rows=40 loops=2)
|
||||
Sort Key: messages.created_at, messages.id
|
||||
Sort Method: top-N heapsort Memory: 36kB
|
||||
Buffers: shared hit=1930
|
||||
Worker 0: Sort Method: top-N heapsort Memory: 36kB
|
||||
-> Parallel Seq Scan on messages (actual rows=40000 loops=2)
|
||||
Filter: (chat_id = '60e7163e-605c-470b-81c0-820c332cfec7'::uuid)
|
||||
Rows Removed by Filter: 17500
|
||||
Buffers: shared hit=1886
|
||||
Planning:
|
||||
Buffers: shared hit=133
|
||||
Planning Time: 0.474 ms
|
||||
Execution Time: 14.564 ms
|
||||
(19 rows)
|
||||
|
||||
--- Q2 страница из середины большого чата, keyset
|
||||
QUERY PLAN
|
||||
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Limit (actual rows=51 loops=1)
|
||||
Buffers: shared hit=1901
|
||||
-> Gather Merge (actual rows=51 loops=1)
|
||||
Workers Planned: 1
|
||||
Workers Launched: 1
|
||||
Buffers: shared hit=1901
|
||||
-> Sort (actual rows=40 loops=2)
|
||||
Sort Key: messages.created_at, messages.id
|
||||
Sort Method: top-N heapsort Memory: 35kB
|
||||
Buffers: shared hit=1901
|
||||
Worker 0: Sort Method: top-N heapsort Memory: 36kB
|
||||
-> Parallel Seq Scan on messages (actual rows=20008 loops=2)
|
||||
Filter: ((chat_id = '60e7163e-605c-470b-81c0-820c332cfec7'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 11:06:24+00'::timestamp with time zone, '3126d0c5-166f-481e-96bf-c950463908dc'::uuid)))
|
||||
Rows Removed by Filter: 37492
|
||||
Buffers: shared hit=1886
|
||||
Planning Time: 0.081 ms
|
||||
Execution Time: 12.118 ms
|
||||
(17 rows)
|
||||
|
||||
--- Q3 последняя страница большого чата, keyset
|
||||
QUERY PLAN
|
||||
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Limit (actual rows=32 loops=1)
|
||||
Buffers: shared hit=1886
|
||||
-> Sort (actual rows=32 loops=1)
|
||||
Sort Key: messages.created_at, messages.id
|
||||
Sort Method: quicksort Memory: 29kB
|
||||
Buffers: shared hit=1886
|
||||
-> Seq Scan on messages (actual rows=32 loops=1)
|
||||
Filter: ((chat_id = '60e7163e-605c-470b-81c0-820c332cfec7'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 22:12:48+00'::timestamp with time zone, 'c8a497c3-78fd-44f5-8bc7-3abcc4d06d1d'::uuid)))
|
||||
Rows Removed by Filter: 114968
|
||||
Buffers: shared hit=1886
|
||||
Planning Time: 0.162 ms
|
||||
Execution Time: 10.543 ms
|
||||
(12 rows)
|
||||
|
||||
--- Q4 маленький чат (5 сообщений)
|
||||
QUERY PLAN
|
||||
------------------------------------------------------------------------------------------------
|
||||
Limit (actual rows=5 loops=1)
|
||||
Buffers: shared hit=7
|
||||
-> Sort (actual rows=5 loops=1)
|
||||
Sort Key: messages.created_at, messages.id
|
||||
Sort Method: quicksort Memory: 25kB
|
||||
Buffers: shared hit=7
|
||||
-> Index Scan using ix_messages_chat_id_sender_id on messages (actual rows=5 loops=1)
|
||||
Index Cond: (chat_id = 'a7223743-6f48-4880-9b67-0e0cc8635177'::uuid)
|
||||
Buffers: shared hit=7
|
||||
Planning Time: 0.080 ms
|
||||
Execution Time: 0.036 ms
|
||||
(11 rows)
|
||||
|
||||
--- Q5 середина большого чата, OFFSET 40000 (для сравнения с keyset)
|
||||
QUERY PLAN
|
||||
--------------------------------------------------------------------------------
|
||||
Limit (actual rows=51 loops=1)
|
||||
Buffers: shared hit=1886, temp read=782 written=1109
|
||||
-> Sort (actual rows=40051 loops=1)
|
||||
Sort Key: created_at, id
|
||||
Sort Method: external merge Disk: 8848kB
|
||||
Buffers: shared hit=1886, temp read=782 written=1109
|
||||
-> Seq Scan on messages m (actual rows=80000 loops=1)
|
||||
Filter: (chat_id = '60e7163e-605c-470b-81c0-820c332cfec7'::uuid)
|
||||
Rows Removed by Filter: 35000
|
||||
Buffers: shared hit=1886
|
||||
Planning Time: 0.040 ms
|
||||
Execution Time: 50.742 ms
|
||||
(12 rows)
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
--- Q1 первая страница большого чата (80 000), keyset
|
||||
QUERY PLAN
|
||||
----------------------------------------------------------------------------------------------
|
||||
Limit (actual rows=51 loops=1)
|
||||
Buffers: shared hit=64
|
||||
-> Incremental Sort (actual rows=51 loops=1)
|
||||
Sort Key: messages.created_at, messages.id
|
||||
Presorted Key: messages.created_at
|
||||
Full-sort Groups: 2 Sort Method: quicksort Average Memory: 29kB Peak Memory: 29kB
|
||||
Buffers: shared hit=64
|
||||
-> Index Scan using ix_t2_nosort on messages (actual rows=52 loops=1)
|
||||
Index Cond: (chat_id = '60e7163e-605c-470b-81c0-820c332cfec7'::uuid)
|
||||
Buffers: shared hit=55
|
||||
Planning:
|
||||
Buffers: shared hit=152
|
||||
Planning Time: 0.510 ms
|
||||
Execution Time: 0.296 ms
|
||||
(14 rows)
|
||||
|
||||
--- Q2 страница из середины большого чата, keyset
|
||||
QUERY PLAN
|
||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Limit (actual rows=51 loops=1)
|
||||
Buffers: shared hit=56
|
||||
-> Incremental Sort (actual rows=51 loops=1)
|
||||
Sort Key: messages.created_at, messages.id
|
||||
Presorted Key: messages.created_at
|
||||
Full-sort Groups: 2 Sort Method: quicksort Average Memory: 29kB Peak Memory: 29kB
|
||||
Buffers: shared hit=56
|
||||
-> Index Scan using ix_t2_nosort on messages (actual rows=52 loops=1)
|
||||
Index Cond: ((chat_id = '60e7163e-605c-470b-81c0-820c332cfec7'::uuid) AND (created_at >= '2026-01-01 11:06:24+00'::timestamp with time zone))
|
||||
Filter: (ROW(created_at, id) > ROW('2026-01-01 11:06:24+00'::timestamp with time zone, '3126d0c5-166f-481e-96bf-c950463908dc'::uuid))
|
||||
Rows Removed by Filter: 1
|
||||
Buffers: shared hit=56
|
||||
Planning:
|
||||
Buffers: shared hit=9
|
||||
Planning Time: 0.109 ms
|
||||
Execution Time: 0.278 ms
|
||||
(16 rows)
|
||||
|
||||
--- Q3 последняя страница большого чата, keyset
|
||||
QUERY PLAN
|
||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Limit (actual rows=32 loops=1)
|
||||
Buffers: shared hit=36
|
||||
-> Incremental Sort (actual rows=32 loops=1)
|
||||
Sort Key: messages.created_at, messages.id
|
||||
Presorted Key: messages.created_at
|
||||
Full-sort Groups: 1 Sort Method: quicksort Average Memory: 29kB Peak Memory: 29kB
|
||||
Buffers: shared hit=36
|
||||
-> Index Scan using ix_t2_nosort on messages (actual rows=32 loops=1)
|
||||
Index Cond: ((chat_id = '60e7163e-605c-470b-81c0-820c332cfec7'::uuid) AND (created_at >= '2026-01-01 22:12:48+00'::timestamp with time zone))
|
||||
Filter: (ROW(created_at, id) > ROW('2026-01-01 22:12:48+00'::timestamp with time zone, 'c8a497c3-78fd-44f5-8bc7-3abcc4d06d1d'::uuid))
|
||||
Rows Removed by Filter: 1
|
||||
Buffers: shared hit=36
|
||||
Planning Time: 0.104 ms
|
||||
Execution Time: 0.188 ms
|
||||
(14 rows)
|
||||
|
||||
--- Q4 маленький чат (5 сообщений)
|
||||
QUERY PLAN
|
||||
------------------------------------------------------------------------------------------------
|
||||
Limit (actual rows=5 loops=1)
|
||||
Buffers: shared hit=7
|
||||
-> Sort (actual rows=5 loops=1)
|
||||
Sort Key: messages.created_at, messages.id
|
||||
Sort Method: quicksort Memory: 25kB
|
||||
Buffers: shared hit=7
|
||||
-> Index Scan using ix_messages_chat_id_sender_id on messages (actual rows=5 loops=1)
|
||||
Index Cond: (chat_id = 'a7223743-6f48-4880-9b67-0e0cc8635177'::uuid)
|
||||
Buffers: shared hit=7
|
||||
Planning Time: 0.093 ms
|
||||
Execution Time: 0.061 ms
|
||||
(11 rows)
|
||||
|
||||
--- Q5 середина большого чата, OFFSET 40000 (для сравнения с keyset)
|
||||
QUERY PLAN
|
||||
-------------------------------------------------------------------------------------------------
|
||||
Limit (actual rows=51 loops=1)
|
||||
Buffers: shared hit=40235
|
||||
-> Incremental Sort (actual rows=40051 loops=1)
|
||||
Sort Key: created_at, id
|
||||
Presorted Key: created_at
|
||||
Full-sort Groups: 1252 Sort Method: quicksort Average Memory: 29kB Peak Memory: 29kB
|
||||
Buffers: shared hit=40235
|
||||
-> Index Scan using ix_t2_nosort on messages m (actual rows=40052 loops=1)
|
||||
Index Cond: (chat_id = '60e7163e-605c-470b-81c0-820c332cfec7'::uuid)
|
||||
Buffers: shared hit=40235
|
||||
Planning Time: 0.070 ms
|
||||
Execution Time: 24.558 ms
|
||||
(12 rows)
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
messages | chats | biggest_chat
|
||||
----------+-------+--------------
|
||||
115000 | 2007 | 80000
|
||||
(1 row)
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
### none
|
||||
index_size_before_writes: - ; index_size_after_writes: -
|
||||
insert_4000_chars: INSERT 0 1
|
||||
wal_bytes_per_inserted_row (pgbench, 1 строка = 1 транзакция): 858
|
||||
bulk_insert_100000_rows: WAL: records=302444 bytes=31081344 Execution Time: 1350.743 ms
|
||||
read:
|
||||
number of transactions actually processed: 2127 latency average = 18.819 ms tps = 212.554761 (without initial connection time)
|
||||
number of transactions actually processed: 2108 latency average = 18.988 ms tps = 210.654143 (without initial connection time)
|
||||
number of transactions actually processed: 2183 latency average = 18.340 ms tps = 218.100983 (without initial connection time)
|
||||
write:
|
||||
number of transactions actually processed: 16448 latency average = 2.432 ms tps = 1644.662835 (without initial connection time)
|
||||
number of transactions actually processed: 16916 latency average = 2.364 ms tps = 1691.860716 (without initial connection time)
|
||||
number of transactions actually processed: 16770 latency average = 2.386 ms tps = 1676.663158 (without initial connection time)
|
||||
|
||||
### hist
|
||||
index_size_before_writes: 6640 kB ; index_size_after_writes: 11 MB
|
||||
insert_4000_chars: INSERT 0 1
|
||||
wal_bytes_per_inserted_row (pgbench, 1 строка = 1 транзакция): 616
|
||||
bulk_insert_100000_rows: WAL: records=403760 bytes=45789852 Execution Time: 1695.049 ms
|
||||
read:
|
||||
number of transactions actually processed: 62256 latency average = 0.643 ms tps = 6218.755638 (without initial connection time)
|
||||
number of transactions actually processed: 63493 latency average = 0.630 ms tps = 6352.291929 (without initial connection time)
|
||||
number of transactions actually processed: 61567 latency average = 0.650 ms tps = 6149.124893 (without initial connection time)
|
||||
write:
|
||||
number of transactions actually processed: 16946 latency average = 2.362 ms tps = 1693.745167 (without initial connection time)
|
||||
number of transactions actually processed: 16641 latency average = 2.403 ms tps = 1664.848849 (without initial connection time)
|
||||
number of transactions actually processed: 16963 latency average = 2.358 ms tps = 1696.038471 (without initial connection time)
|
||||
|
||||
### nosort
|
||||
index_size_before_writes: 4584 kB ; index_size_after_writes: 7760 kB
|
||||
insert_4000_chars: INSERT 0 1
|
||||
wal_bytes_per_inserted_row (pgbench, 1 строка = 1 транзакция): 583
|
||||
bulk_insert_100000_rows: WAL: records=403328 bytes=42385380 Execution Time: 1587.981 ms
|
||||
read:
|
||||
number of transactions actually processed: 59903 latency average = 0.667 ms tps = 5994.227418 (without initial connection time)
|
||||
number of transactions actually processed: 60383 latency average = 0.662 ms tps = 6041.275328 (without initial connection time)
|
||||
number of transactions actually processed: 56943 latency average = 0.702 ms tps = 5697.289368 (without initial connection time)
|
||||
write:
|
||||
number of transactions actually processed: 16061 latency average = 2.493 ms tps = 1604.783436 (without initial connection time)
|
||||
number of transactions actually processed: 16784 latency average = 2.382 ms tps = 1679.071629 (without initial connection time)
|
||||
number of transactions actually processed: 16241 latency average = 2.463 ms tps = 1623.989731 (without initial connection time)
|
||||
|
||||
### covering
|
||||
index_size_before_writes: 14 MB ; index_size_after_writes: 22 MB
|
||||
insert_4000_chars: ERROR: index row size 4072 exceeds btree version 4 maximum 2704 for index "ix_t2_covering"
|
||||
wal_bytes_per_inserted_row (pgbench, 1 строка = 1 транзакция): 666
|
||||
bulk_insert_100000_rows: WAL: records=404576 bytes=52517584 Execution Time: 1760.480 ms
|
||||
read:
|
||||
number of transactions actually processed: 62138 latency average = 0.643 ms tps = 6216.254799 (without initial connection time)
|
||||
number of transactions actually processed: 58790 latency average = 0.680 ms tps = 5881.725592 (without initial connection time)
|
||||
number of transactions actually processed: 67909 latency average = 0.589 ms tps = 6794.075551 (without initial connection time)
|
||||
write:
|
||||
number of transactions actually processed: 16847 latency average = 2.374 ms tps = 1685.193930 (without initial connection time)
|
||||
number of transactions actually processed: 16939 latency average = 2.361 ms tps = 1694.410526 (without initial connection time)
|
||||
number of transactions actually processed: 16557 latency average = 2.416 ms tps = 1655.868733 (without initial connection time)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
4c4
|
||||
< messages (вся таблица)|115000|e7f19607379781ee110b9200494bbcf3
|
||||
---
|
||||
> messages (вся таблица)|115000|b807300ed40a4955402060d63cdc19a5
|
||||
@@ -0,0 +1,12 @@
|
||||
users|3|51bcdca8513517684d2dfa6fd4c4aff5
|
||||
chats|2007|0da84d05ff1ad3e7a62433144c4582ac
|
||||
chat_members|6021|779ff444836543e364e76f63f6a384bb
|
||||
messages (вся таблица)|115000|e7f19607379781ee110b9200494bbcf3
|
||||
sessions|1|c8063ca9281542b6ba8f4484a1a99d16
|
||||
ef_migrations|2|6f913313d9b9a19dfa647da18c45bb08
|
||||
сообщений по чатам|2007|c6b7fa4e7d14dd960089a87244b52b86
|
||||
большой чат: первые 100|100|d55e32e077b1346e0ee2bdc26f8ff82e
|
||||
большой чат: последние 100|100|bd6aacada35def95a3404cc6e88c4317
|
||||
выборка ~1/115|1021|347c369111e508ee71004d0388ab7e14
|
||||
индексы|14|02562701b856f65b731b4567c3499a3a
|
||||
ограничения|17|6138d2f6f3395e1e26f36c6071a2de0c
|
||||
@@ -0,0 +1,12 @@
|
||||
users|3|51bcdca8513517684d2dfa6fd4c4aff5
|
||||
chats|2007|0da84d05ff1ad3e7a62433144c4582ac
|
||||
chat_members|6021|779ff444836543e364e76f63f6a384bb
|
||||
messages (вся таблица)|115000|e7f19607379781ee110b9200494bbcf3
|
||||
sessions|1|c8063ca9281542b6ba8f4484a1a99d16
|
||||
ef_migrations|2|6f913313d9b9a19dfa647da18c45bb08
|
||||
сообщений по чатам|2007|c6b7fa4e7d14dd960089a87244b52b86
|
||||
большой чат: первые 100|100|d55e32e077b1346e0ee2bdc26f8ff82e
|
||||
большой чат: последние 100|100|bd6aacada35def95a3404cc6e88c4317
|
||||
выборка ~1/115|1021|347c369111e508ee71004d0388ab7e14
|
||||
индексы|14|02562701b856f65b731b4567c3499a3a
|
||||
ограничения|17|6138d2f6f3395e1e26f36c6071a2de0c
|
||||
@@ -0,0 +1,2 @@
|
||||
track2_restore
|
||||
track2_src
|
||||
Reference in New Issue
Block a user