forked from mtusi2026/mtusi2026lab2
Завершить PostgreSQL, Redis-сессии, миграции, таймауты и диагностику. Зафиксировать собственные тесты и доказательства финального прогона: 43 PASS, 0 FAIL, 0 SKIP; 768 HTTP-запросов без ошибок. Добавить официальный отчёт с запуском, архитектурой, SQL-планами и ограничениями. PR отложен до завершения уровня 5.
900 lines
34 KiB
JSON
900 lines
34 KiB
JSON
{
|
|
"date": "2026-10-14",
|
|
"scope": "verification of new test scaffolds on synthetic fixtures, not a complete acceptance of the current application",
|
|
"project": "highload-lab2-test-b3695867",
|
|
"runtime_results": [
|
|
{
|
|
"suite": "business-boundaries",
|
|
"status": "PASS",
|
|
"observation": null,
|
|
"duration_seconds": 0.5468
|
|
},
|
|
{
|
|
"suite": "business-cursors",
|
|
"status": "PASS",
|
|
"observation": null,
|
|
"duration_seconds": 0.3711
|
|
},
|
|
{
|
|
"suite": "read-after-write",
|
|
"status": "PASS",
|
|
"observation": null,
|
|
"duration_seconds": 0.2571
|
|
},
|
|
{
|
|
"suite": "sql-plan",
|
|
"status": "PASS",
|
|
"observation": {
|
|
"chat_distribution_percent": [
|
|
70,
|
|
20,
|
|
6,
|
|
3,
|
|
1
|
|
],
|
|
"deep_page": {
|
|
"explain": {
|
|
"Execution Time": 0.023,
|
|
"Plan": {
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.011,
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 72,
|
|
"Plans": [
|
|
{
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.008,
|
|
"Alias": "messages",
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Index Cond": "((chat_id = 'cd6e5042-e5d2-4b71-8176-e748fd41f21f'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:08.001+00'::timestamp with time zone, 'fbc37ac5-9496-44b7-8620-b2313300477d'::uuid)))",
|
|
"Index Name": "idx_messages_chat_created_id",
|
|
"Index Searches": 1,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Index Scan",
|
|
"Parallel Aware": false,
|
|
"Parent Relationship": "Outer",
|
|
"Plan Rows": 1399,
|
|
"Plan Width": 72,
|
|
"Relation Name": "messages",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Scan Direction": "Forward",
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Startup Cost": 0.29,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 532.2
|
|
}
|
|
],
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Startup Cost": 0.29,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 19.68
|
|
},
|
|
"Planning": {
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.025,
|
|
"Triggers": []
|
|
},
|
|
"max_visited_rows": 51
|
|
},
|
|
"first_page": {
|
|
"explain": {
|
|
"Execution Time": 0.015,
|
|
"Plan": {
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 0.003,
|
|
"Actual Total Time": 0.009,
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 72,
|
|
"Plans": [
|
|
{
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 0.002,
|
|
"Actual Total Time": 0.006,
|
|
"Alias": "messages",
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Index Cond": "(chat_id = 'cd6e5042-e5d2-4b71-8176-e748fd41f21f'::uuid)",
|
|
"Index Name": "idx_messages_chat_created_id",
|
|
"Index Searches": 1,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Index Scan",
|
|
"Parallel Aware": false,
|
|
"Parent Relationship": "Outer",
|
|
"Plan Rows": 7000,
|
|
"Plan Width": 72,
|
|
"Relation Name": "messages",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Scan Direction": "Forward",
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Startup Cost": 0.29,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 838.49
|
|
}
|
|
],
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Startup Cost": 0.29,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 6.39
|
|
},
|
|
"Planning": {
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.02,
|
|
"Triggers": []
|
|
},
|
|
"max_visited_rows": 51
|
|
},
|
|
"mode": "plan",
|
|
"rows": 10000,
|
|
"scan_budget_rows": 1000,
|
|
"schema": "lab2_test_bc2da9b009ef42c4aa229287d6fd3e94"
|
|
},
|
|
"duration_seconds": 2.3235
|
|
},
|
|
{
|
|
"suite": "sql-experiment",
|
|
"status": "PASS",
|
|
"observation": {
|
|
"chat_distribution_percent": [
|
|
70,
|
|
20,
|
|
6,
|
|
3,
|
|
1
|
|
],
|
|
"limitations": "Warm single-host prototype; write cleanup can leave bloat. Repeat under fixed resources and review plans, cold/generic plans and loss boundaries.",
|
|
"mode": "compare",
|
|
"rows": 100000,
|
|
"schema": "lab2_test_5e728af09de041f1bcdff95b11004870",
|
|
"variants": [
|
|
{
|
|
"columns": "chat_id",
|
|
"deep_page": {
|
|
"explain": {
|
|
"Execution Time": 4.711,
|
|
"Plan": {
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 4.7,
|
|
"Actual Total Time": 4.705,
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 73,
|
|
"Plans": [
|
|
{
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 4.7,
|
|
"Actual Total Time": 4.702,
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Sort",
|
|
"Parallel Aware": false,
|
|
"Parent Relationship": "Outer",
|
|
"Plan Rows": 14289,
|
|
"Plan Width": 73,
|
|
"Plans": [
|
|
{
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 13999,
|
|
"Actual Startup Time": 2.868,
|
|
"Actual Total Time": 3.934,
|
|
"Alias": "messages",
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Filter": "((chat_id = '99d0db10-5a08-43d4-9ada-1a3893b58b20'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.001+00'::timestamp with time zone, '966344f0-9534-4e3e-ae17-ed4c5f2591f8'::uuid)))",
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Seq Scan",
|
|
"Parallel Aware": false,
|
|
"Parent Relationship": "Outer",
|
|
"Plan Rows": 14289,
|
|
"Plan Width": 73,
|
|
"Relation Name": "messages",
|
|
"Rows Removed by Filter": 86001,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 1350,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Startup Cost": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 3122.31
|
|
}
|
|
],
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 1350,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Type": "Memory",
|
|
"Sort Space Used": 31,
|
|
"Startup Cost": 3599.02,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 3634.75
|
|
}
|
|
],
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 1350,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Startup Cost": 3599.02,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 3599.15
|
|
},
|
|
"Planning": {
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.033,
|
|
"Triggers": []
|
|
},
|
|
"max_visited_rows": 100000
|
|
},
|
|
"first_page": {
|
|
"explain": {
|
|
"Execution Time": 8.291,
|
|
"Plan": {
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 6.657,
|
|
"Actual Total Time": 8.282,
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 73,
|
|
"Plans": [
|
|
{
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 6.656,
|
|
"Actual Total Time": 8.278,
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Gather Merge",
|
|
"Parallel Aware": false,
|
|
"Parent Relationship": "Outer",
|
|
"Plan Rows": 70871,
|
|
"Plan Width": 73,
|
|
"Plans": [
|
|
{
|
|
"Actual Loops": 2,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 4.668,
|
|
"Actual Total Time": 4.671,
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Sort",
|
|
"Parallel Aware": false,
|
|
"Parent Relationship": "Outer",
|
|
"Plan Rows": 41689,
|
|
"Plan Width": 73,
|
|
"Plans": [
|
|
{
|
|
"Actual Loops": 2,
|
|
"Actual Rows": 35000,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 2.648,
|
|
"Alias": "messages",
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Filter": "(chat_id = '99d0db10-5a08-43d4-9ada-1a3893b58b20'::uuid)",
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Seq Scan",
|
|
"Parallel Aware": true,
|
|
"Parent Relationship": "Outer",
|
|
"Plan Rows": 41689,
|
|
"Plan Width": 73,
|
|
"Relation Name": "messages",
|
|
"Rows Removed by Filter": 15000,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 1350,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Startup Cost": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 2094.67,
|
|
"Workers": []
|
|
}
|
|
],
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 1395,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Type": "Memory",
|
|
"Sort Space Used": 31,
|
|
"Startup Cost": 3485.5,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 3589.73,
|
|
"Workers": [
|
|
{
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Type": "Memory",
|
|
"Sort Space Used": 31,
|
|
"Worker Number": 0
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 1395,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Startup Cost": 4485.51,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 12562.72,
|
|
"Workers Launched": 1,
|
|
"Workers Planned": 1
|
|
}
|
|
],
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 1395,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Startup Cost": 4485.51,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 4491.33
|
|
},
|
|
"Planning": {
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.035,
|
|
"Triggers": []
|
|
},
|
|
"max_visited_rows": 100000
|
|
},
|
|
"index_bytes": 737280,
|
|
"insert_200_with_commit_ms": {
|
|
"p50": 2.584,
|
|
"p95": 3.59,
|
|
"p99": 3.59
|
|
},
|
|
"read_ms": {
|
|
"p50": 5.141,
|
|
"p95": 5.686,
|
|
"p99": 5.686
|
|
}
|
|
},
|
|
{
|
|
"columns": "chat_id,created_at,id",
|
|
"deep_page": {
|
|
"explain": {
|
|
"Execution Time": 0.025,
|
|
"Plan": {
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 0.013,
|
|
"Actual Total Time": 0.019,
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 73,
|
|
"Plans": [
|
|
{
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 0.013,
|
|
"Actual Total Time": 0.016,
|
|
"Alias": "messages",
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Index Cond": "((chat_id = '99d0db10-5a08-43d4-9ada-1a3893b58b20'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.001+00'::timestamp with time zone, '966344f0-9534-4e3e-ae17-ed4c5f2591f8'::uuid)))",
|
|
"Index Name": "lab2_history_variant",
|
|
"Index Searches": 1,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Index Scan",
|
|
"Parallel Aware": false,
|
|
"Parent Relationship": "Outer",
|
|
"Plan Rows": 14170,
|
|
"Plan Width": 73,
|
|
"Relation Name": "messages",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Scan Direction": "Forward",
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"Shared Read Blocks": 1,
|
|
"Shared Written Blocks": 0,
|
|
"Startup Cost": 0.42,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 5311.89
|
|
}
|
|
],
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"Shared Read Blocks": 1,
|
|
"Shared Written Blocks": 0,
|
|
"Startup Cost": 0.42,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 19.53
|
|
},
|
|
"Planning": {
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.041,
|
|
"Triggers": []
|
|
},
|
|
"max_visited_rows": 51
|
|
},
|
|
"first_page": {
|
|
"explain": {
|
|
"Execution Time": 0.015,
|
|
"Plan": {
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 0.003,
|
|
"Actual Total Time": 0.009,
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 73,
|
|
"Plans": [
|
|
{
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 0.003,
|
|
"Actual Total Time": 0.006,
|
|
"Alias": "messages",
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Index Cond": "(chat_id = '99d0db10-5a08-43d4-9ada-1a3893b58b20'::uuid)",
|
|
"Index Name": "lab2_history_variant",
|
|
"Index Searches": 1,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Index Scan",
|
|
"Parallel Aware": false,
|
|
"Parent Relationship": "Outer",
|
|
"Plan Rows": 71060,
|
|
"Plan Width": 73,
|
|
"Relation Name": "messages",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Scan Direction": "Forward",
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Startup Cost": 0.42,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 8044.12
|
|
}
|
|
],
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Startup Cost": 0.42,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 6.19
|
|
},
|
|
"Planning": {
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.044,
|
|
"Triggers": []
|
|
},
|
|
"max_visited_rows": 51
|
|
},
|
|
"index_bytes": 6004736,
|
|
"insert_200_with_commit_ms": {
|
|
"p50": 2.472,
|
|
"p95": 3.016,
|
|
"p99": 3.016
|
|
},
|
|
"read_ms": {
|
|
"p50": 4.639,
|
|
"p95": 5.091,
|
|
"p99": 5.091
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"duration_seconds": 2.1275
|
|
},
|
|
{
|
|
"suite": "backup-restore",
|
|
"status": "PASS",
|
|
"observation": {
|
|
"backup_seconds": 0.3176,
|
|
"restore_seconds": 0.4366,
|
|
"tables": {
|
|
"chat_members": {
|
|
"rows": 5,
|
|
"sha256": "9fe587f3c02843166a424d41262f242d7e39548822ff325d2ab4490ed2e0b5f5"
|
|
},
|
|
"chats": {
|
|
"rows": 5,
|
|
"sha256": "18c355e977deaad72cbf7e92b200a68689f7fd94061cea875762b9b4d3e79b59"
|
|
},
|
|
"messages": {
|
|
"rows": 100000,
|
|
"sha256": "e5feff13f4ffe5d4334cbfab16f8d32adb71ae10f9841a95dd7c020b7c070c1d"
|
|
},
|
|
"sessions": {
|
|
"rows": 0,
|
|
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
},
|
|
"users": {
|
|
"rows": 1,
|
|
"sha256": "eb105af647465874ed27717cc6c4e91b45040ece63639993bf530cd346a2f47c"
|
|
}
|
|
},
|
|
"review": "Document recovery/loss boundaries and verify fresh storage scope."
|
|
},
|
|
"duration_seconds": 1.8915
|
|
},
|
|
{
|
|
"suite": "persistence",
|
|
"status": "PASS",
|
|
"observation": null,
|
|
"duration_seconds": 2.1506
|
|
}
|
|
],
|
|
"final_sql_plan": {
|
|
"scope": "observed automated scenarios, not an automatic grade or manual report/CI review",
|
|
"results": [
|
|
{
|
|
"suite": "sql-plan",
|
|
"status": "PASS",
|
|
"observation": {
|
|
"actual_rows": 10000,
|
|
"chat_distribution_percent": [
|
|
70,
|
|
20,
|
|
6,
|
|
3,
|
|
1
|
|
],
|
|
"chat_message_counts": [
|
|
7000,
|
|
2000,
|
|
600,
|
|
300,
|
|
100
|
|
],
|
|
"deep_page": {
|
|
"explain": {
|
|
"Execution Time": 0.015,
|
|
"Plan": {
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 0.004,
|
|
"Actual Total Time": 0.01,
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 72,
|
|
"Plans": [
|
|
{
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 0.004,
|
|
"Actual Total Time": 0.007,
|
|
"Alias": "messages",
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Index Cond": "((chat_id = 'ade9231d-bd50-45a8-ab91-d5229d8655f8'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:08.001+00'::timestamp with time zone, 'ceafc4d1-54f8-47f0-bb6c-d29e86fd1fea'::uuid)))",
|
|
"Index Name": "idx_messages_chat_created_id",
|
|
"Index Searches": 1,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Index Scan",
|
|
"Parallel Aware": false,
|
|
"Parent Relationship": "Outer",
|
|
"Plan Rows": 1399,
|
|
"Plan Width": 72,
|
|
"Relation Name": "messages",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Scan Direction": "Forward",
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Startup Cost": 0.29,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 532.21
|
|
}
|
|
],
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Startup Cost": 0.29,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 19.68
|
|
},
|
|
"Planning": {
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.017,
|
|
"Triggers": []
|
|
},
|
|
"max_visited_rows": 51
|
|
},
|
|
"first_page": {
|
|
"explain": {
|
|
"Execution Time": 0.014,
|
|
"Plan": {
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 0.002,
|
|
"Actual Total Time": 0.009,
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 72,
|
|
"Plans": [
|
|
{
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 0.002,
|
|
"Actual Total Time": 0.006,
|
|
"Alias": "messages",
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Index Cond": "(chat_id = 'ade9231d-bd50-45a8-ab91-d5229d8655f8'::uuid)",
|
|
"Index Name": "idx_messages_chat_created_id",
|
|
"Index Searches": 1,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Node Type": "Index Scan",
|
|
"Parallel Aware": false,
|
|
"Parent Relationship": "Outer",
|
|
"Plan Rows": 7000,
|
|
"Plan Width": 72,
|
|
"Relation Name": "messages",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Scan Direction": "Forward",
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Startup Cost": 0.29,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 838.5
|
|
}
|
|
],
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Startup Cost": 0.29,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Total Cost": 6.39
|
|
},
|
|
"Planning": {
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.015,
|
|
"Triggers": []
|
|
},
|
|
"max_visited_rows": 51
|
|
},
|
|
"go_version": "go1.27.1",
|
|
"mode": "plan",
|
|
"postgres_version": "18.6 (Debian 18.6-1.pgdg13+2)",
|
|
"rows": 10000,
|
|
"scan_budget_rows": 1000,
|
|
"schema": "lab2_test_a499cc3457d14c849676491389ae64c2"
|
|
},
|
|
"duration_seconds": 2.2296
|
|
}
|
|
]
|
|
},
|
|
"protected_changes_observed": [
|
|
"internal/transport/http/handler/auth.go",
|
|
"internal/transport/http/handler/health.go"
|
|
],
|
|
"application_edited_by_assistant": false,
|
|
"cleanup_exit": 0,
|
|
"dump_retained": false,
|
|
"not_verified": [
|
|
"Redis actual cache adapters and both cache policies",
|
|
"Real database lock/pool-exhaustion adapters",
|
|
"CI example on a CI runner",
|
|
"Full acceptance of concurrently edited auth.go/health.go",
|
|
"Manual report, experiment methodology, hardware/resource comparison and defense"
|
|
]
|
|
} |