исправление проблем из мра
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
kaktuz20000
2026-10-15 13:03:51 +03:00
parent c20fdeca8c
commit a5f02bebce
12 changed files with 505 additions and 293 deletions
+250 -250
View File
@@ -1,5 +1,5 @@
{
"run_utc": "2026-10-07T06:01:48.126545+00:00",
"run_utc": "2026-10-09T13:21:05.722546+00:00",
"environment": {
"host_platform": "macOS-27.0-arm64-arm-64bit-Mach-O",
"host_architecture": "arm64",
@@ -24,8 +24,8 @@
"index": "(chat_id)",
"samples": [
{
"execution_ms": 0.308,
"planning_ms": 0.492,
"execution_ms": 0.265,
"planning_ms": 0.384,
"actual_rows": 25,
"shared_hit_blocks": 206,
"shared_read_blocks": 2,
@@ -33,12 +33,12 @@
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 26.36,
"Total Cost": 26.42,
"Startup Cost": 26.61,
"Total Cost": 26.67,
"Plan Rows": 25,
"Plan Width": 41,
"Actual Startup Time": 0.233,
"Actual Total Time": 0.236,
"Actual Startup Time": 0.217,
"Actual Total Time": 0.22,
"Actual Rows": 25,
"Actual Loops": 1,
"Shared Hit Blocks": 206,
@@ -57,12 +57,12 @@
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 26.36,
"Total Cost": 26.43,
"Plan Rows": 29,
"Startup Cost": 26.61,
"Total Cost": 26.68,
"Plan Rows": 30,
"Plan Width": 41,
"Actual Startup Time": 0.232,
"Actual Total Time": 0.234,
"Actual Startup Time": 0.216,
"Actual Total Time": 0.217,
"Actual Rows": 25,
"Actual Loops": 1,
"Sort Key": [
@@ -93,11 +93,11 @@
"Relation Name": "messages_chat_only",
"Alias": "messages_chat_only",
"Startup Cost": 0.29,
"Total Cost": 25.65,
"Plan Rows": 29,
"Total Cost": 25.87,
"Plan Rows": 30,
"Plan Width": 41,
"Actual Startup Time": 0.07,
"Actual Total Time": 0.194,
"Actual Startup Time": 0.073,
"Actual Total Time": 0.182,
"Actual Rows": 150,
"Actual Loops": 1,
"Index Cond": "(chat_id = 2)",
@@ -121,8 +121,8 @@
}
},
{
"execution_ms": 0.29,
"planning_ms": 0.41,
"execution_ms": 0.233,
"planning_ms": 0.353,
"actual_rows": 25,
"shared_hit_blocks": 208,
"shared_read_blocks": 0,
@@ -130,12 +130,12 @@
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 26.36,
"Total Cost": 26.42,
"Startup Cost": 26.61,
"Total Cost": 26.67,
"Plan Rows": 25,
"Plan Width": 41,
"Actual Startup Time": 0.236,
"Actual Total Time": 0.239,
"Actual Startup Time": 0.195,
"Actual Total Time": 0.198,
"Actual Rows": 25,
"Actual Loops": 1,
"Shared Hit Blocks": 208,
@@ -154,12 +154,12 @@
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 26.36,
"Total Cost": 26.43,
"Plan Rows": 29,
"Startup Cost": 26.61,
"Total Cost": 26.68,
"Plan Rows": 30,
"Plan Width": 41,
"Actual Startup Time": 0.235,
"Actual Total Time": 0.236,
"Actual Startup Time": 0.194,
"Actual Total Time": 0.195,
"Actual Rows": 25,
"Actual Loops": 1,
"Sort Key": [
@@ -190,11 +190,11 @@
"Relation Name": "messages_chat_only",
"Alias": "messages_chat_only",
"Startup Cost": 0.29,
"Total Cost": 25.65,
"Plan Rows": 29,
"Total Cost": 25.87,
"Plan Rows": 30,
"Plan Width": 41,
"Actual Startup Time": 0.059,
"Actual Total Time": 0.187,
"Actual Startup Time": 0.055,
"Actual Total Time": 0.166,
"Actual Rows": 150,
"Actual Loops": 1,
"Index Cond": "(chat_id = 2)",
@@ -218,8 +218,8 @@
}
},
{
"execution_ms": 0.297,
"planning_ms": 0.407,
"execution_ms": 0.245,
"planning_ms": 0.363,
"actual_rows": 25,
"shared_hit_blocks": 208,
"shared_read_blocks": 0,
@@ -227,12 +227,12 @@
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 26.36,
"Total Cost": 26.42,
"Startup Cost": 26.61,
"Total Cost": 26.67,
"Plan Rows": 25,
"Plan Width": 41,
"Actual Startup Time": 0.248,
"Actual Total Time": 0.252,
"Actual Startup Time": 0.198,
"Actual Total Time": 0.2,
"Actual Rows": 25,
"Actual Loops": 1,
"Shared Hit Blocks": 208,
@@ -251,12 +251,12 @@
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 26.36,
"Total Cost": 26.43,
"Plan Rows": 29,
"Startup Cost": 26.61,
"Total Cost": 26.68,
"Plan Rows": 30,
"Plan Width": 41,
"Actual Startup Time": 0.247,
"Actual Total Time": 0.249,
"Actual Startup Time": 0.197,
"Actual Total Time": 0.198,
"Actual Rows": 25,
"Actual Loops": 1,
"Sort Key": [
@@ -287,11 +287,11 @@
"Relation Name": "messages_chat_only",
"Alias": "messages_chat_only",
"Startup Cost": 0.29,
"Total Cost": 25.65,
"Plan Rows": 29,
"Total Cost": 25.87,
"Plan Rows": 30,
"Plan Width": 41,
"Actual Startup Time": 0.063,
"Actual Total Time": 0.208,
"Actual Startup Time": 0.051,
"Actual Total Time": 0.158,
"Actual Rows": 150,
"Actual Loops": 1,
"Index Cond": "(chat_id = 2)",
@@ -315,8 +315,8 @@
}
},
{
"execution_ms": 0.334,
"planning_ms": 0.414,
"execution_ms": 0.218,
"planning_ms": 0.285,
"actual_rows": 25,
"shared_hit_blocks": 208,
"shared_read_blocks": 0,
@@ -324,12 +324,12 @@
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 26.36,
"Total Cost": 26.42,
"Startup Cost": 26.61,
"Total Cost": 26.67,
"Plan Rows": 25,
"Plan Width": 41,
"Actual Startup Time": 0.259,
"Actual Total Time": 0.262,
"Actual Startup Time": 0.184,
"Actual Total Time": 0.186,
"Actual Rows": 25,
"Actual Loops": 1,
"Shared Hit Blocks": 208,
@@ -348,12 +348,12 @@
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 26.36,
"Total Cost": 26.43,
"Plan Rows": 29,
"Startup Cost": 26.61,
"Total Cost": 26.68,
"Plan Rows": 30,
"Plan Width": 41,
"Actual Startup Time": 0.258,
"Actual Total Time": 0.259,
"Actual Startup Time": 0.183,
"Actual Total Time": 0.184,
"Actual Rows": 25,
"Actual Loops": 1,
"Sort Key": [
@@ -384,11 +384,11 @@
"Relation Name": "messages_chat_only",
"Alias": "messages_chat_only",
"Startup Cost": 0.29,
"Total Cost": 25.65,
"Plan Rows": 29,
"Total Cost": 25.87,
"Plan Rows": 30,
"Plan Width": 41,
"Actual Startup Time": 0.061,
"Actual Total Time": 0.191,
"Actual Startup Time": 0.048,
"Actual Total Time": 0.155,
"Actual Rows": 150,
"Actual Loops": 1,
"Index Cond": "(chat_id = 2)",
@@ -412,8 +412,8 @@
}
},
{
"execution_ms": 0.271,
"planning_ms": 0.454,
"execution_ms": 0.268,
"planning_ms": 0.365,
"actual_rows": 25,
"shared_hit_blocks": 208,
"shared_read_blocks": 0,
@@ -421,12 +421,12 @@
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 26.36,
"Total Cost": 26.42,
"Startup Cost": 26.61,
"Total Cost": 26.67,
"Plan Rows": 25,
"Plan Width": 41,
"Actual Startup Time": 0.223,
"Actual Total Time": 0.226,
"Actual Startup Time": 0.228,
"Actual Total Time": 0.23,
"Actual Rows": 25,
"Actual Loops": 1,
"Shared Hit Blocks": 208,
@@ -445,12 +445,12 @@
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 26.36,
"Total Cost": 26.43,
"Plan Rows": 29,
"Startup Cost": 26.61,
"Total Cost": 26.68,
"Plan Rows": 30,
"Plan Width": 41,
"Actual Startup Time": 0.222,
"Actual Total Time": 0.223,
"Actual Startup Time": 0.227,
"Actual Total Time": 0.228,
"Actual Rows": 25,
"Actual Loops": 1,
"Sort Key": [
@@ -481,11 +481,11 @@
"Relation Name": "messages_chat_only",
"Alias": "messages_chat_only",
"Startup Cost": 0.29,
"Total Cost": 25.65,
"Plan Rows": 29,
"Total Cost": 25.87,
"Plan Rows": 30,
"Plan Width": 41,
"Actual Startup Time": 0.059,
"Actual Total Time": 0.183,
"Actual Startup Time": 0.049,
"Actual Total Time": 0.186,
"Actual Rows": 150,
"Actual Loops": 1,
"Index Cond": "(chat_id = 2)",
@@ -514,8 +514,8 @@
"index": "(chat_id, created_at, id)",
"samples": [
{
"execution_ms": 0.201,
"planning_ms": 0.446,
"execution_ms": 0.085,
"planning_ms": 0.331,
"actual_rows": 25,
"shared_hit_blocks": 25,
"shared_read_blocks": 3,
@@ -524,11 +524,11 @@
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 50.73,
"Total Cost": 50.6,
"Plan Rows": 25,
"Plan Width": 41,
"Actual Startup Time": 0.045,
"Actual Total Time": 0.156,
"Actual Startup Time": 0.034,
"Actual Total Time": 0.055,
"Actual Rows": 25,
"Actual Loops": 1,
"Shared Hit Blocks": 25,
@@ -552,11 +552,11 @@
"Relation Name": "messages_composite",
"Alias": "messages_composite",
"Startup Cost": 0.42,
"Total Cost": 60.79,
"Plan Rows": 30,
"Total Cost": 62.64,
"Plan Rows": 31,
"Plan Width": 41,
"Actual Startup Time": 0.044,
"Actual Total Time": 0.151,
"Actual Startup Time": 0.033,
"Actual Total Time": 0.053,
"Actual Rows": 25,
"Actual Loops": 1,
"Index Cond": "((chat_id = 2) AND (ROW(created_at, id) > ROW('2025-01-01 23:36:40+00'::timestamp with time zone, 0)))",
@@ -576,8 +576,8 @@
}
},
{
"execution_ms": 0.1,
"planning_ms": 0.429,
"execution_ms": 0.087,
"planning_ms": 0.362,
"actual_rows": 25,
"shared_hit_blocks": 28,
"shared_read_blocks": 0,
@@ -586,11 +586,11 @@
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 50.73,
"Total Cost": 50.6,
"Plan Rows": 25,
"Plan Width": 41,
"Actual Startup Time": 0.024,
"Actual Total Time": 0.048,
"Actual Startup Time": 0.022,
"Actual Total Time": 0.043,
"Actual Rows": 25,
"Actual Loops": 1,
"Shared Hit Blocks": 28,
@@ -614,134 +614,10 @@
"Relation Name": "messages_composite",
"Alias": "messages_composite",
"Startup Cost": 0.42,
"Total Cost": 60.79,
"Plan Rows": 30,
"Total Cost": 62.64,
"Plan Rows": 31,
"Plan Width": 41,
"Actual Startup Time": 0.023,
"Actual Total Time": 0.045,
"Actual Rows": 25,
"Actual Loops": 1,
"Index Cond": "((chat_id = 2) AND (ROW(created_at, id) > ROW('2025-01-01 23:36:40+00'::timestamp with time zone, 0)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 28,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
},
{
"execution_ms": 0.093,
"planning_ms": 0.433,
"actual_rows": 25,
"shared_hit_blocks": 28,
"shared_read_blocks": 0,
"plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 50.73,
"Plan Rows": 25,
"Plan Width": 41,
"Actual Startup Time": 0.02,
"Actual Total Time": 0.046,
"Actual Rows": 25,
"Actual Loops": 1,
"Shared Hit Blocks": 28,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_chat_history_idx",
"Relation Name": "messages_composite",
"Alias": "messages_composite",
"Startup Cost": 0.42,
"Total Cost": 60.79,
"Plan Rows": 30,
"Plan Width": 41,
"Actual Startup Time": 0.019,
"Actual Total Time": 0.043,
"Actual Rows": 25,
"Actual Loops": 1,
"Index Cond": "((chat_id = 2) AND (ROW(created_at, id) > ROW('2025-01-01 23:36:40+00'::timestamp with time zone, 0)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 28,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
},
{
"execution_ms": 0.097,
"planning_ms": 0.444,
"actual_rows": 25,
"shared_hit_blocks": 28,
"shared_read_blocks": 0,
"plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 50.73,
"Plan Rows": 25,
"Plan Width": 41,
"Actual Startup Time": 0.02,
"Actual Total Time": 0.044,
"Actual Rows": 25,
"Actual Loops": 1,
"Shared Hit Blocks": 28,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_chat_history_idx",
"Relation Name": "messages_composite",
"Alias": "messages_composite",
"Startup Cost": 0.42,
"Total Cost": 60.79,
"Plan Rows": 30,
"Plan Width": 41,
"Actual Startup Time": 0.019,
"Actual Startup Time": 0.021,
"Actual Total Time": 0.041,
"Actual Rows": 25,
"Actual Loops": 1,
@@ -762,8 +638,8 @@
}
},
{
"execution_ms": 0.083,
"planning_ms": 0.473,
"execution_ms": 0.065,
"planning_ms": 0.307,
"actual_rows": 25,
"shared_hit_blocks": 28,
"shared_read_blocks": 0,
@@ -772,11 +648,11 @@
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 50.73,
"Total Cost": 50.6,
"Plan Rows": 25,
"Plan Width": 41,
"Actual Startup Time": 0.02,
"Actual Total Time": 0.044,
"Actual Startup Time": 0.015,
"Actual Total Time": 0.035,
"Actual Rows": 25,
"Actual Loops": 1,
"Shared Hit Blocks": 28,
@@ -800,11 +676,135 @@
"Relation Name": "messages_composite",
"Alias": "messages_composite",
"Startup Cost": 0.42,
"Total Cost": 60.79,
"Plan Rows": 30,
"Total Cost": 62.64,
"Plan Rows": 31,
"Plan Width": 41,
"Actual Startup Time": 0.019,
"Actual Total Time": 0.041,
"Actual Startup Time": 0.014,
"Actual Total Time": 0.032,
"Actual Rows": 25,
"Actual Loops": 1,
"Index Cond": "((chat_id = 2) AND (ROW(created_at, id) > ROW('2025-01-01 23:36:40+00'::timestamp with time zone, 0)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 28,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
},
{
"execution_ms": 0.079,
"planning_ms": 0.365,
"actual_rows": 25,
"shared_hit_blocks": 28,
"shared_read_blocks": 0,
"plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 50.6,
"Plan Rows": 25,
"Plan Width": 41,
"Actual Startup Time": 0.021,
"Actual Total Time": 0.042,
"Actual Rows": 25,
"Actual Loops": 1,
"Shared Hit Blocks": 28,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_chat_history_idx",
"Relation Name": "messages_composite",
"Alias": "messages_composite",
"Startup Cost": 0.42,
"Total Cost": 62.64,
"Plan Rows": 31,
"Plan Width": 41,
"Actual Startup Time": 0.02,
"Actual Total Time": 0.039,
"Actual Rows": 25,
"Actual Loops": 1,
"Index Cond": "((chat_id = 2) AND (ROW(created_at, id) > ROW('2025-01-01 23:36:40+00'::timestamp with time zone, 0)))",
"Rows Removed by Index Recheck": 0,
"Shared Hit Blocks": 28,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
},
{
"execution_ms": 0.066,
"planning_ms": 0.299,
"actual_rows": 25,
"shared_hit_blocks": 28,
"shared_read_blocks": 0,
"plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 50.6,
"Plan Rows": 25,
"Plan Width": 41,
"Actual Startup Time": 0.015,
"Actual Total Time": 0.036,
"Actual Rows": 25,
"Actual Loops": 1,
"Shared Hit Blocks": 28,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_chat_history_idx",
"Relation Name": "messages_composite",
"Alias": "messages_composite",
"Startup Cost": 0.42,
"Total Cost": 62.64,
"Plan Rows": 31,
"Plan Width": 41,
"Actual Startup Time": 0.014,
"Actual Total Time": 0.033,
"Actual Rows": 25,
"Actual Loops": 1,
"Index Cond": "((chat_id = 2) AND (ROW(created_at, id) > ROW('2025-01-01 23:36:40+00'::timestamp with time zone, 0)))",
@@ -830,32 +830,32 @@
"chat_id_only": {
"samples": [
{
"execution_ms": 5.747,
"planning_ms": 0.092,
"execution_ms": 4.163,
"planning_ms": 0.062,
"shared_write_blocks": 25
},
{
"execution_ms": 5.886,
"planning_ms": 0.068,
"execution_ms": 3.936,
"planning_ms": 0.05,
"shared_write_blocks": 40
},
{
"execution_ms": 5.27,
"planning_ms": 0.064,
"execution_ms": 3.97,
"planning_ms": 0.051,
"shared_write_blocks": 25
},
{
"execution_ms": 5.177,
"planning_ms": 0.068,
"execution_ms": 3.722,
"planning_ms": 0.05,
"shared_write_blocks": 24
},
{
"execution_ms": 5.428,
"planning_ms": 0.076,
"execution_ms": 4.037,
"planning_ms": 0.059,
"shared_write_blocks": 25
}
],
"median_execution_ms": 5.428,
"median_execution_ms": 3.97,
"median_shared_write_blocks": 25,
"rows_per_sample": 2000,
"rolled_back_after_each_measurement": true
@@ -863,32 +863,32 @@
"composite_history": {
"samples": [
{
"execution_ms": 7.341,
"planning_ms": 0.068,
"execution_ms": 5.166,
"planning_ms": 0.062,
"shared_write_blocks": 26
},
{
"execution_ms": 8.717,
"planning_ms": 0.066,
"execution_ms": 7.163,
"planning_ms": 0.051,
"shared_write_blocks": 120
},
{
"execution_ms": 6.492,
"planning_ms": 0.067,
"execution_ms": 4.777,
"planning_ms": 0.05,
"shared_write_blocks": 23
},
{
"execution_ms": 6.163,
"planning_ms": 0.064,
"execution_ms": 4.501,
"planning_ms": 0.049,
"shared_write_blocks": 24
},
{
"execution_ms": 7.218,
"planning_ms": 0.066,
"execution_ms": 5.049,
"planning_ms": 0.05,
"shared_write_blocks": 25
}
],
"median_execution_ms": 7.218,
"median_execution_ms": 5.049,
"median_shared_write_blocks": 25,
"rows_per_sample": 2000,
"rolled_back_after_each_measurement": true
@@ -897,8 +897,8 @@
"backup_restore": {
"format": "pg_dump custom format",
"dump_bytes": 1596489,
"dump_seconds": 0.3118779160431586,
"restore_seconds": 0.38548716699006036,
"dump_seconds": 0.25986058299895376,
"restore_seconds": 0.31837804202223197,
"restored_counts": {
"messages_chat_only": 100000,
"messages_composite": 100000
+6 -6
View File
@@ -1,6 +1,6 @@
# Lab2 level-5 track 2 — query plans and recovery
- Run UTC: 2026-10-07T06:01:48.126545+00:00
- Run UTC: 2026-10-09T13:21:05.722546+00:00
- Host: macOS-27.0-arm64-arm-64bit-Mach-O (arm64), logical CPUs: 10
- Host physical memory: 17179869184 bytes.
- PostgreSQL: 16.4 in `postgres:16.4-alpine`; container memory limit: 0 bytes; CPU limit: 0 nanocores (0 means unlimited).
@@ -9,16 +9,16 @@
| Index | Median execution (ms) | Shared hits | Shared reads | Rows |
|---|---:|---:|---:|---:|
| `(chat_id)` | 0.297 | 206 | 2 | 25 |
| `(chat_id, created_at, id)` | 0.097 | 25 | 3 | 25 |
| `(chat_id)` | 0.245 | 206 | 2 | 25 |
| `(chat_id, created_at, id)` | 0.079 | 25 | 3 | 25 |
| Index | Median time for 2,000 inserted rows (ms) | Median shared write blocks |
|---|---:|---:|
| `(chat_id)` | 5.428 | 25 |
| `(chat_id, created_at, id)` | 7.218 | 25 |
| `(chat_id)` | 3.970 | 25 |
| `(chat_id, created_at, id)` | 5.049 | 25 |
Each write-cost query was measured five times inside a transaction and rolled back. This isolates execution and index-maintenance work but does not measure durable commit/fsync latency.
Backup/restore: custom-format dump 1596489 bytes; dump 0.312s; restore into a separately created empty database 0.385s. Restored row counts and deterministic checksums for the selected messages were verified: **PASS**.
Backup/restore: custom-format dump 1596489 bytes; dump 0.260s; restore into a separately created empty database 0.318s. Restored row counts and deterministic checksums for the selected messages were verified: **PASS**.
Raw JSON plans, samples, environment and restore checksums are in `track5_query_restore.json`. This single-host synthetic run is a reproducible comparison, not a production capacity or HA claim.