Files
mtusi2026lab3/evidence/submission-final-2026-10-30/clean-clone-final/acceptance/sql-plan.json
T

190 lines
6.6 KiB
JSON

{
"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.003,
"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.003,
"Actual Total Time": 0.008,
"Alias": "messages",
"Async Capable": false,
"Disabled": false,
"Index Cond": "((chat_id = '503bb8da-7bc9-4150-b2a6-1c8050069b48'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:08.001+00'::timestamp with time zone, '750a041f-713d-4fe8-9911-d168eedb72db'::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": 5,
"Shared Read Blocks": 0,
"Shared Written Blocks": 0,
"Startup Cost": 0.29,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Total Cost": 548.41
}
],
"Shared Dirtied Blocks": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Written Blocks": 0,
"Startup Cost": 0.29,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Total Cost": 20.27
},
"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.022,
"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.003,
"Actual Total Time": 0.006,
"Alias": "messages",
"Async Capable": false,
"Disabled": false,
"Index Cond": "(chat_id = '503bb8da-7bc9-4150-b2a6-1c8050069b48'::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": 939.26
}
],
"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": 7.13
},
"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.018,
"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_68b2f8dbe75b4c50ba17cfa96a3caeda"
},
"duration_seconds": 0.9456
}
]
}