forked from mtusi2026/mtusi2026lab2
ЛР 2: завершить трек 2 на оценку 5
This commit is contained in:
@@ -0,0 +1,189 @@
|
||||
{
|
||||
"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.017,
|
||||
"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 = 'bde1e6fa-b10d-4711-aa0f-a5931047155d'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:08.001+00'::timestamp with time zone, '53e6b6e8-ec82-4d7e-ba9d-95fcf2a11686'::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": 545.97
|
||||
}
|
||||
],
|
||||
"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": 20.18
|
||||
},
|
||||
"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.029,
|
||||
"Triggers": []
|
||||
},
|
||||
"max_visited_rows": 51
|
||||
},
|
||||
"first_page": {
|
||||
"explain": {
|
||||
"Execution Time": 0.014,
|
||||
"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 = 'bde1e6fa-b10d-4711-aa0f-a5931047155d'::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": 3,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 916.59
|
||||
}
|
||||
],
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 3,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 6.96
|
||||
},
|
||||
"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.014,
|
||||
"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_efe28d873a5743279428083b8c0f8693"
|
||||
},
|
||||
"duration_seconds": 2.0227
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user