{ "scope": "observed automated scenarios, not an automatic grade or manual report/CI review", "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 } ] }