190 lines
6.6 KiB
JSON
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.033,
|
|
"Plan": {
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 0.009,
|
|
"Actual Total Time": 0.021,
|
|
"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.008,
|
|
"Actual Total Time": 0.015,
|
|
"Alias": "messages",
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Index Cond": "((chat_id = '896477a6-4a67-4884-9a7a-041bc50dd692'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:08.001+00'::timestamp with time zone, '9c66a614-3b0c-44c7-a008-38f6ecf9e118'::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.042,
|
|
"Triggers": []
|
|
},
|
|
"max_visited_rows": 51
|
|
},
|
|
"first_page": {
|
|
"explain": {
|
|
"Execution Time": 0.036,
|
|
"Plan": {
|
|
"Actual Loops": 1,
|
|
"Actual Rows": 51,
|
|
"Actual Startup Time": 0.006,
|
|
"Actual Total Time": 0.02,
|
|
"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.006,
|
|
"Actual Total Time": 0.015,
|
|
"Alias": "messages",
|
|
"Async Capable": false,
|
|
"Disabled": false,
|
|
"Index Cond": "(chat_id = '896477a6-4a67-4884-9a7a-041bc50dd692'::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.053,
|
|
"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_235fbb832f4b4e71a28d8af9157467ef"
|
|
},
|
|
"duration_seconds": 5.0465
|
|
}
|
|
]
|
|
}
|