{ "application_repository_timeout_seconds": 1, "chat_counts": [ 70000, 20000, 6000, 3000, 1000 ], "concurrent_clients": 1, "dataset_sha256": "fc94357a9bd1c43db1d4c890482cb7ce3df0ca75d168608e38d81a3f6c55276f", "limitations": "Warm sequential closed-loop SQL through the same generated sqlc query; no HTTP/KDF. Offline query budget 10s, application repository unchanged at 1s. Same logical rows, VACUUM FULL and rebuild before trials. pgx prepared-plan behavior is retained. WAL is cluster-wide on a dedicated quiet instance; sampled CPU includes administration. No cold-cache or sustained-capacity claim.", "mode": "research", "payload_bytes": 256, "postgres_version": "18.6 (Debian 18.6-1.pgdg13+2)", "reads_per_case": 60, "rows": 100000, "rows_per_write_batch": 200, "series": 4, "sql_experiment_timeout_seconds": 10, "trials": [ { "build_ms": 32.871, "columns": "chat_id", "dataset_sha256": "fc94357a9bd1c43db1d4c890482cb7ce3df0ca75d168608e38d81a3f6c55276f", "index_bytes": 720896, "insert_200_with_commit_ms": { "p50": 5.558, "p95": 8.991, "p99": 10.859 }, "order": 1, "read_cases": { "large_deep": { "elapsed_seconds": 0.629271292, "latency_ms": { "p50": 9.676, "p95": 17.029, "p99": 18.805 }, "plan": { "explain": { "Execution Time": 10.365, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 9.027, "Actual Total Time": 10.345, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 9.025, "Actual Total Time": 10.338, "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": 13733, "Plan Width": 316, "Plans": [ { "Actual Loops": 3, "Actual Rows": 38, "Actual Startup Time": 6.849, "Actual Total Time": 6.851, "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": 5722, "Plan Width": 316, "Plans": [ { "Actual Loops": 3, "Actual Rows": 4666.33, "Actual Startup Time": 5.777, "Actual Total Time": 6.481, "Alias": "messages", "Async Capable": false, "Disabled": false, "Filter": "((chat_id = '5832e110-981c-437d-8328-db45f37d874a'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.001+00'::timestamp with time zone, 'd62723dc-9cbd-4043-b5c1-f32937d5f11f'::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": 5722, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Filter": 28667, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4348, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 5077.17, "Workers": [] } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4378, "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": 50, "Startup Cost": 5268.06, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 5282.37, "Workers": [ { "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Worker Number": 0 }, { "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Worker Number": 1 } ] } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4378, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 6268.09, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 7867.52, "Workers Launched": 2, "Workers Planned": 2 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4378, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 6268.09, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 6274.03 }, "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.086, "Triggers": [] }, "max_visited_rows": 99999.99 }, "samples_ms": [ 8.172, 8.221, 8.283, 8.75, 10.538, 9.542, 9.615, 10.029, 9.391, 9.844, 10.147, 9.324, 9.213, 10.779, 8.67, 8.422, 8.665, 8.904, 8.432, 8.707, 8.551, 8.842, 8.17, 8.469, 8.369, 8.452, 10.014, 9.512, 10.293, 8.707, 8.323, 8.576, 8.758, 9.517, 11.273, 9.676, 10.271, 10.476, 12.488, 14.976, 10.455, 17.029, 16.328, 14.22, 17.739, 18.805, 17.523, 10.889, 9.974, 11.096, 13.467, 11.261, 13.124, 12.106, 10.18, 10.275, 10.491, 9.735, 8.363, 8.756 ], "successful_rps": 95.34838274490997 }, "large_first": { "elapsed_seconds": 0.622447583, "latency_ms": { "p50": 8.57, "p95": 12.349, "p99": 83.17 }, "plan": { "explain": { "Execution Time": 9.984, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 8.562, "Actual Total Time": 9.964, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 8.561, "Actual Total Time": 9.96, "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": 69607, "Plan Width": 316, "Plans": [ { "Actual Loops": 3, "Actual Rows": 51, "Actual Startup Time": 6.894, "Actual Total Time": 6.897, "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": 29003, "Plan Width": 316, "Plans": [ { "Actual Loops": 3, "Actual Rows": 23333.33, "Actual Startup Time": 0.01, "Actual Total Time": 5.149, "Alias": "messages", "Async Capable": false, "Disabled": false, "Filter": "(chat_id = '5832e110-981c-437d-8328-db45f37d874a'::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": 29003, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Filter": 10000, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4183, "Shared Read Blocks": 165, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4868.83, "Workers": [] } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4273, "Shared Read Blocks": 165, "Shared Written Blocks": 0, "Sort Key": [ "created_at", "id" ], "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Startup Cost": 5836.44, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 5908.94, "Workers": [ { "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Worker Number": 0 }, { "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Worker Number": 1 } ] } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4273, "Shared Read Blocks": 165, "Shared Written Blocks": 0, "Startup Cost": 6836.46, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 14943.34, "Workers Launched": 2, "Workers Planned": 2 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4273, "Shared Read Blocks": 165, "Shared Written Blocks": 0, "Startup Cost": 6836.46, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 6842.4 }, "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.086, "Triggers": [] }, "max_visited_rows": 99999.99 }, "samples_ms": [ 83.17, 13.919, 9.897, 8.491, 8.361, 8.675, 8.186, 8.429, 8.32, 8.92, 8.207, 8.273, 8.133, 8.467, 9.07, 10.006, 11.282, 8.343, 8.695, 11.431, 9.596, 8.473, 8.735, 8.384, 11.338, 8.833, 13.851, 8.834, 8.635, 8.629, 9.035, 7.885, 8.327, 8.451, 8.57, 9.219, 8.371, 7.95, 8.533, 8.311, 7.989, 7.87, 8.113, 8.19, 8.061, 8.327, 8.792, 10.155, 12.349, 8.517, 8.476, 8.043, 9.413, 11.642, 10.434, 8.851, 10.285, 11.691, 8.27, 8.571 ], "successful_rps": 96.39365890187736 }, "medium_deep": { "elapsed_seconds": 0.086751416, "latency_ms": { "p50": 1.267, "p95": 2.207, "p99": 3.691 }, "plan": { "explain": { "Execution Time": 0.805, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.792, "Actual Total Time": 0.796, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.791, "Actual Total Time": 0.793, "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": 1168, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1199, "Actual Startup Time": 0.567, "Actual Total Time": 0.7, "Alias": "messages", "Async Capable": false, "Disabled": false, "Exact Heap Blocks": 1218, "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:01:20.09+00'::timestamp with time zone, 'ae564c19-8cd2-43ca-b5b8-e5ea8ca16bf1'::uuid))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Lossy Heap Blocks": 0, "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1168, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 6000, "Actual Startup Time": 0.107, "Actual Total Time": 0.107, "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::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": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 5947, "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 68.89 } ], "Recheck Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::uuid)", "Relation Name": "messages", "Rows Removed by Filter": 4801, "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 69.19, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4751.17 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "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": 50, "Startup Cost": 4790.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4793.06 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 4790.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4790.26 }, "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.089, "Triggers": [] }, "max_visited_rows": 6000 }, "samples_ms": [ 1.435, 1.408, 1.736, 1.502, 2.121, 3.691, 2.937, 1.756, 1.477, 1.264, 1.282, 1.239, 1.225, 1.266, 1.206, 1.286, 1.267, 1.193, 1.338, 1.257, 1.363, 1.278, 1.402, 2.837, 1.447, 1.268, 1.326, 1.627, 1.359, 1.302, 1.228, 1.213, 1.219, 1.437, 1.193, 1.302, 1.193, 1.207, 1.238, 1.418, 1.435, 1.238, 1.193, 1.266, 1.447, 1.875, 1.664, 1.263, 2.207, 1.195, 1.235, 1.237, 1.219, 1.238, 1.198, 1.191, 1.16, 1.206, 1.198, 1.251 ], "successful_rps": 691.6313619595558 }, "medium_first": { "elapsed_seconds": 0.094549208, "latency_ms": { "p50": 1.46, "p95": 2.173, "p99": 4.743 }, "plan": { "explain": { "Execution Time": 1.071, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 1.058, "Actual Total Time": 1.064, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 1.058, "Actual Total Time": 1.061, "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": 5947, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 6000, "Actual Startup Time": 0.209, "Actual Total Time": 0.686, "Alias": "messages", "Async Capable": false, "Disabled": false, "Exact Heap Blocks": 1218, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Lossy Heap Blocks": 0, "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 5947, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 6000, "Actual Startup Time": 0.127, "Actual Total Time": 0.127, "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::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": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 5947, "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 68.89 } ], "Recheck Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::uuid)", "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 70.38, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4722.63 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "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": 50, "Startup Cost": 4921.03, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4935.9 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 4921.03, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4921.16 }, "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.067, "Triggers": [] }, "max_visited_rows": 6000 }, "samples_ms": [ 1.537, 1.574, 1.628, 1.478, 1.449, 1.412, 1.47, 1.568, 4.743, 1.549, 1.606, 1.5, 1.397, 1.423, 1.484, 1.596, 1.406, 1.358, 1.46, 1.643, 1.703, 1.466, 1.469, 1.585, 1.356, 1.474, 1.488, 1.375, 1.502, 1.548, 1.395, 1.286, 1.337, 1.354, 1.321, 1.409, 1.31, 1.513, 1.356, 1.355, 1.283, 1.295, 1.629, 1.565, 1.345, 1.274, 1.311, 1.387, 1.456, 1.369, 1.309, 1.409, 1.533, 1.487, 1.451, 4.177, 2.224, 2.173, 1.508, 1.375 ], "successful_rps": 634.5901913847866 }, "small_deep": { "elapsed_seconds": 0.090474459, "latency_ms": { "p50": 1.179, "p95": 2.808, "p99": 5.497 }, "plan": { "explain": { "Execution Time": 1.441, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 1.391, "Actual Total Time": 1.404, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 1.39, "Actual Total Time": 1.398, "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": 213, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 199, "Actual Startup Time": 1.114, "Actual Total Time": 1.333, "Alias": "messages", "Async Capable": false, "Disabled": false, "Exact Heap Blocks": 1000, "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:01:20.099+00'::timestamp with time zone, '484e251a-e47b-46aa-9386-c8a7d6228bd6'::uuid))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Lossy Heap Blocks": 0, "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 213, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1000, "Actual Startup Time": 0.101, "Actual Total Time": 0.101, "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::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": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1083, "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 12.42 } ], "Recheck Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::uuid)", "Relation Name": "messages", "Rows Removed by Filter": 801, "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 12.47, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2525.69 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "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": 50, "Startup Cost": 2532.79, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2533.33 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 2532.79, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2532.92 }, "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.19, "Triggers": [] }, "max_visited_rows": 1000 }, "samples_ms": [ 0.863, 0.77, 0.769, 0.899, 1.174, 0.857, 0.864, 0.792, 0.768, 0.769, 0.72, 0.778, 0.941, 1.262, 1.051, 1.152, 0.973, 2.073, 2.122, 1.272, 2.57, 1.788, 1.179, 1.313, 1.011, 1.859, 2.22, 1.926, 2.709, 1.659, 2.819, 1.899, 5.497, 2.808, 2.49, 1.234, 2.026, 1.71, 1.125, 1.312, 2.06, 1.126, 1.472, 1.16, 1.245, 1.11, 1.013, 0.996, 1.115, 1.064, 1.153, 1.044, 1.096, 1.336, 3.056, 2.059, 1.109, 1.399, 1.684, 2.049 ], "successful_rps": 663.1705860766739 }, "small_first": { "elapsed_seconds": 0.0702825, "latency_ms": { "p50": 0.899, "p95": 2.202, "p99": 3.946 }, "plan": { "explain": { "Execution Time": 0.412, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.402, "Actual Total Time": 0.406, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.401, "Actual Total Time": 0.403, "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": 1083, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1000, "Actual Startup Time": 0.121, "Actual Total Time": 0.331, "Alias": "messages", "Async Capable": false, "Disabled": false, "Exact Heap Blocks": 1000, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Lossy Heap Blocks": 0, "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1083, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1000, "Actual Startup Time": 0.048, "Actual Total Time": 0.048, "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::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": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1083, "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 12.42 } ], "Recheck Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::uuid)", "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 12.69, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2520.49 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "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": 50, "Startup Cost": 2556.62, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2559.33 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 2556.62, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2556.75 }, "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.049, "Triggers": [] }, "max_visited_rows": 1000 }, "samples_ms": [ 1.016, 0.897, 1.42, 2.259, 2.202, 0.821, 1.038, 1.649, 1.401, 2.564, 1.431, 1.334, 2.073, 1.46, 1.563, 3.946, 1.709, 1.2, 0.934, 1.027, 1.117, 0.899, 0.939, 0.897, 0.87, 0.868, 0.815, 0.839, 0.793, 0.874, 1.001, 0.91, 0.869, 0.911, 0.865, 1.538, 2.03, 1.343, 2.012, 1.498, 1.607, 0.88, 0.903, 0.878, 0.832, 0.787, 0.718, 0.783, 0.745, 0.79, 0.819, 0.803, 0.806, 0.788, 0.732, 0.801, 0.707, 0.686, 0.617, 0.685 ], "successful_rps": 853.6975776331235 } }, "series": 1, "table_bytes": 35618816, "variant": "A", "write_samples_ms": [ 8.991, 10.859, 8.427, 7.07, 8.501, 6.449, 5.558, 7.838, 6.326, 7.71, 4.182, 3.846, 3.813, 5.167, 5.022, 6.41, 5.104, 5.026, 4.039, 3.402 ], "write_wal_bytes": [ 113576, 105944, 104464, 104440, 104464, 104520, 104632, 105120, 104440, 104408, 104520, 104464, 104552, 105232, 104408, 104464, 104440, 104520, 104520, 104688 ] }, { "build_ms": 191.03, "columns": "chat_id,created_at,id", "dataset_sha256": "fc94357a9bd1c43db1d4c890482cb7ce3df0ca75d168608e38d81a3f6c55276f", "index_bytes": 5914624, "insert_200_with_commit_ms": { "p50": 2.74, "p95": 4.367, "p99": 7.531 }, "order": 2, "read_cases": { "large_deep": { "elapsed_seconds": 0.49294025, "latency_ms": { "p50": 6.264, "p95": 15.219, "p99": 33.151 }, "plan": { "explain": { "Execution Time": 0.07, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.046, "Actual Total Time": 0.058, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.046, "Actual Total Time": 0.054, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "((chat_id = '5832e110-981c-437d-8328-db45f37d874a'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.001+00'::timestamp with time zone, 'd62723dc-9cbd-4043-b5c1-f32937d5f11f'::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": 13792, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 1, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 15428.76 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 1, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 57.47 }, "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.19, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 32.046, 33.151, 28.253, 14.794, 11.578, 15.219, 11.23, 7.955, 7.853, 6.276, 6.171, 6.166, 6.105, 6.986, 12.144, 5.893, 6.051, 6.249, 6.241, 5.915, 5.942, 6.311, 6.924, 7.776, 7.008, 8.526, 7.935, 6.43, 8.064, 6.525, 6.094, 11.192, 6.476, 6.355, 5.66, 5.677, 7.76, 5.868, 6.525, 6.86, 7.949, 8.373, 5.987, 5.741, 5.456, 5.287, 6.288, 5.813, 5.812, 5.111, 5.192, 5.284, 5.076, 5.326, 5.08, 5.421, 5.757, 5.597, 5.611, 6.264 ], "successful_rps": 121.71860585537496 }, "large_first": { "elapsed_seconds": 0.039393625, "latency_ms": { "p50": 0.467, "p95": 1.517, "p99": 4.45 }, "plan": { "explain": { "Execution Time": 0.02, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "Actual Total Time": 0.013, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "Actual Total Time": 0.009, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = '5832e110-981c-437d-8328-db45f37d874a'::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": 69677, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 18370.3 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 13.86 }, "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.164, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 1.175, 0.697, 0.566, 1.318, 0.55, 0.406, 0.476, 0.473, 0.519, 0.44, 0.357, 0.453, 0.412, 0.414, 0.368, 0.486, 0.627, 0.487, 0.403, 0.377, 1.67, 0.506, 0.466, 0.425, 0.467, 0.471, 0.504, 0.921, 0.823, 1.512, 2.015, 1.294, 4.45, 0.484, 0.41, 0.416, 0.368, 0.369, 0.36, 0.337, 0.306, 0.326, 0.31, 0.434, 0.472, 0.459, 0.478, 0.503, 0.488, 0.455, 0.492, 0.506, 0.438, 0.396, 0.441, 1.517, 0.685, 0.441, 0.452, 0.446 ], "successful_rps": 1523.0890784993765 }, "medium_deep": { "elapsed_seconds": 0.060726125, "latency_ms": { "p50": 0.903, "p95": 1.352, "p99": 4.168 }, "plan": { "explain": { "Execution Time": 0.02, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "Actual Total Time": 0.013, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "Actual Total Time": 0.01, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "((chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.09+00'::timestamp with time zone, 'ae564c19-8cd2-43ca-b5b8-e5ea8ca16bf1'::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": 1188, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 16, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 3595.03 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 16, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 154.73 }, "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.068, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 1.399, 1.352, 2.173, 1.331, 1.247, 0.862, 0.812, 0.809, 0.807, 0.903, 0.818, 0.831, 0.814, 0.769, 0.804, 0.786, 0.759, 0.785, 0.864, 0.893, 0.863, 0.895, 0.832, 0.845, 0.833, 1.328, 0.888, 0.908, 0.856, 0.904, 1.139, 4.168, 1.034, 0.928, 0.948, 1.085, 1.029, 1.066, 1.011, 0.928, 0.891, 0.866, 0.871, 0.861, 0.875, 0.946, 0.914, 0.897, 0.967, 0.888, 0.917, 0.941, 0.935, 0.88, 0.903, 0.943, 0.92, 0.911, 1.09, 0.934 ], "successful_rps": 988.042625805615 }, "medium_first": { "elapsed_seconds": 0.03816625, "latency_ms": { "p50": 0.444, "p95": 1.389, "p99": 3.678 }, "plan": { "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": 316, "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 = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::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": 6030, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 12328.38 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 104.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.058, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 0.699, 0.921, 0.66, 0.361, 0.452, 0.943, 0.467, 0.38, 0.513, 0.518, 0.341, 0.444, 0.383, 0.34, 0.373, 0.46, 0.505, 0.58, 0.639, 0.413, 0.396, 0.401, 0.44, 0.369, 0.406, 0.376, 0.375, 0.437, 0.721, 1.113, 0.978, 1.216, 1.59, 0.433, 0.517, 0.807, 0.375, 3.678, 0.557, 0.275, 0.324, 0.375, 0.291, 0.351, 0.283, 0.481, 0.284, 0.406, 1.141, 1.389, 1.834, 0.916, 0.66, 0.944, 0.283, 0.601, 0.647, 0.306, 0.417, 0.329 ], "successful_rps": 1572.0695640782105 }, "small_deep": { "elapsed_seconds": 0.048663, "latency_ms": { "p50": 0.588, "p95": 1.061, "p99": 6.797 }, "plan": { "explain": { "Execution Time": 0.034, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.006, "Actual Total Time": 0.026, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.006, "Actual Total Time": 0.021, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "((chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.099+00'::timestamp with time zone, '484e251a-e47b-46aa-9386-c8a7d6228bd6'::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": 217, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 55, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 729.48 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 55, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 171.76 }, "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.07, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 0.628, 0.51, 0.539, 0.515, 0.53, 0.656, 0.833, 0.57, 0.62, 0.546, 0.616, 0.693, 0.599, 0.633, 0.564, 0.573, 0.568, 0.617, 1.061, 0.628, 0.527, 0.515, 0.536, 0.551, 0.559, 0.619, 0.599, 0.539, 0.588, 0.552, 0.604, 0.588, 0.693, 0.888, 0.605, 0.522, 0.532, 0.536, 0.513, 0.531, 0.594, 0.596, 0.548, 0.568, 0.522, 0.565, 0.517, 0.648, 0.718, 6.797, 0.954, 0.649, 0.653, 0.941, 0.66, 1.812, 4.85, 0.83, 0.536, 0.535 ], "successful_rps": 1232.96960729918 }, "small_first": { "elapsed_seconds": 0.029277333, "latency_ms": { "p50": 0.416, "p95": 0.964, "p99": 1.19 }, "plan": { "explain": { "Execution Time": 0.02, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.003, "Actual Total Time": 0.016, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.003, "Actual Total Time": 0.013, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::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": 1100, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 54, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 3353.29 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 54, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 155.87 }, "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.05, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 0.45, 0.415, 0.362, 0.386, 0.409, 0.397, 0.416, 0.468, 0.817, 0.413, 0.499, 0.465, 0.431, 0.375, 0.512, 1.19, 0.438, 0.478, 0.461, 0.399, 0.407, 0.437, 0.425, 0.408, 0.401, 0.413, 0.44, 0.414, 0.416, 0.462, 0.457, 0.447, 0.425, 0.397, 0.834, 0.956, 1.174, 0.964, 1.032, 0.477, 0.432, 0.382, 0.376, 0.396, 0.396, 0.404, 0.381, 0.428, 0.443, 0.395, 0.393, 0.39, 0.422, 0.425, 0.421, 0.394, 0.382, 0.406, 0.371, 0.395 ], "successful_rps": 2049.3669966454936 } }, "series": 1, "table_bytes": 35618816, "variant": "B", "write_samples_ms": [ 7.531, 4.367, 3.577, 3.74, 3.691, 2.903, 2.84, 2.825, 2.74, 2.618, 2.717, 2.536, 2.583, 2.722, 2.683, 2.705, 2.608, 3.341, 3.202, 2.665 ], "write_wal_bytes": [ 129376, 116848, 117168, 117120, 121136, 116896, 117192, 117120, 121136, 117168, 117120, 117144, 117120, 121392, 117120, 117120, 117144, 121088, 116848, 117168 ] }, { "build_ms": 148.119, "columns": "chat_id,created_at,id", "dataset_sha256": "fc94357a9bd1c43db1d4c890482cb7ce3df0ca75d168608e38d81a3f6c55276f", "index_bytes": 5914624, "insert_200_with_commit_ms": { "p50": 3.197, "p95": 5.831, "p99": 30.227 }, "order": 1, "read_cases": { "large_deep": { "elapsed_seconds": 0.466939084, "latency_ms": { "p50": 7.205, "p95": 11.068, "p99": 12.984 }, "plan": { "explain": { "Execution Time": 0.065, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.036, "Actual Total Time": 0.046, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.036, "Actual Total Time": 0.043, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "((chat_id = '5832e110-981c-437d-8328-db45f37d874a'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.001+00'::timestamp with time zone, 'd62723dc-9cbd-4043-b5c1-f32937d5f11f'::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": 13631, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 1, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 15394.22 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 1, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 58.01 }, "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.088, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 11.068, 9.428, 8.479, 9.195, 8.551, 9.121, 8.1, 8.235, 12.984, 11.146, 11.51, 8.147, 7.193, 7.398, 9.236, 8.925, 7.362, 7.014, 7.205, 7.475, 7.101, 9.484, 8.643, 8.94, 8.685, 7.129, 6.482, 6.471, 7.987, 7.514, 7.196, 7.598, 6.677, 6.801, 6.661, 6.317, 7.152, 6.818, 6.162, 6.891, 7.166, 7.34, 6.579, 6.049, 6.344, 6.718, 8.712, 10.921, 7.765, 7.683, 7.285, 7.15, 7.078, 6.758, 6.624, 6.735, 6.49, 6.588, 6.389, 6.011 ], "successful_rps": 128.49641860350246 }, "large_first": { "elapsed_seconds": 0.035137292, "latency_ms": { "p50": 0.461, "p95": 1.324, "p99": 3.149 }, "plan": { "explain": { "Execution Time": 0.026, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.009, "Actual Total Time": 0.018, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.009, "Actual Total Time": 0.014, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = '5832e110-981c-437d-8328-db45f37d874a'::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": 69977, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 18363.2 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 13.8 }, "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.111, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 0.416, 0.499, 0.677, 0.578, 0.481, 0.548, 0.533, 0.476, 0.391, 0.501, 0.397, 0.537, 0.47, 0.416, 0.462, 1.321, 0.461, 0.437, 0.496, 0.532, 0.414, 0.41, 0.561, 0.437, 0.432, 0.55, 0.398, 0.383, 0.374, 0.379, 0.386, 0.355, 0.334, 0.39, 0.401, 0.751, 0.564, 0.398, 0.38, 0.419, 0.385, 0.466, 0.44, 0.398, 0.381, 0.373, 0.924, 1.324, 1.421, 3.149, 0.544, 0.799, 0.514, 0.551, 0.429, 0.446, 0.581, 0.436, 1.592, 0.533 ], "successful_rps": 1707.5874828373228 }, "medium_deep": { "elapsed_seconds": 0.062919541, "latency_ms": { "p50": 0.86, "p95": 1.39, "p99": 6.719 }, "plan": { "explain": { "Execution Time": 0.048, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.023, "Actual Total Time": 0.039, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.023, "Actual Total Time": 0.036, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "((chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.09+00'::timestamp with time zone, 'ae564c19-8cd2-43ca-b5b8-e5ea8ca16bf1'::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": 1209, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 16, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 3643 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 16, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 154.07 }, "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.076, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 1.083, 1.001, 0.875, 0.839, 0.832, 0.921, 1.35, 1.01, 0.911, 1.207, 0.824, 0.778, 0.795, 0.804, 0.761, 0.764, 0.779, 0.876, 0.8, 0.778, 0.926, 0.822, 0.835, 0.805, 0.778, 0.755, 0.754, 0.82, 0.749, 0.777, 0.814, 1.39, 2.153, 1.151, 0.803, 0.826, 1.219, 0.884, 0.908, 0.845, 0.802, 0.787, 0.786, 0.782, 0.859, 1.016, 0.872, 1.127, 1.123, 0.911, 0.893, 1.051, 0.86, 0.972, 0.905, 0.884, 1.003, 1.342, 2.168, 6.719 ], "successful_rps": 953.5988191649396 }, "medium_first": { "elapsed_seconds": 0.040681542, "latency_ms": { "p50": 0.373, "p95": 1.418, "p99": 13.888 }, "plan": { "explain": { "Execution Time": 0.019, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "Actual Total Time": 0.012, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "Actual Total Time": 0.009, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::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": 6233, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 12555.08 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 103.14 }, "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.099, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 0.368, 0.399, 0.433, 0.397, 0.525, 0.384, 0.393, 0.306, 0.314, 0.344, 0.283, 0.327, 0.383, 0.389, 0.313, 0.268, 0.293, 0.297, 0.301, 0.308, 0.394, 0.967, 0.293, 0.317, 0.301, 0.303, 0.324, 0.385, 0.386, 0.342, 0.356, 0.347, 0.383, 0.3, 0.266, 0.394, 0.383, 0.515, 0.373, 0.348, 0.385, 0.371, 0.441, 0.449, 0.425, 0.456, 0.321, 0.282, 0.326, 0.747, 1.437, 1.154, 1.418, 13.888, 1.775, 0.573, 0.4, 0.33, 0.364, 0.388 ], "successful_rps": 1474.8703478348978 }, "small_deep": { "elapsed_seconds": 0.034664583, "latency_ms": { "p50": 0.525, "p95": 0.784, "p99": 1.579 }, "plan": { "explain": { "Execution Time": 0.023, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "Actual Total Time": 0.018, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "Actual Total Time": 0.015, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "((chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.099+00'::timestamp with time zone, '484e251a-e47b-46aa-9386-c8a7d6228bd6'::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": 195, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 55, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 656.92 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 55, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 172.12 }, "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.055, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 0.538, 0.744, 0.784, 1.053, 1.579, 1.47, 0.581, 0.706, 0.677, 0.591, 0.54, 0.531, 0.499, 0.48, 0.497, 0.516, 0.574, 0.552, 0.496, 0.626, 0.552, 0.552, 0.484, 0.521, 0.532, 0.522, 0.491, 0.527, 0.536, 0.507, 0.51, 0.527, 0.512, 0.551, 0.501, 0.6, 0.497, 0.52, 0.475, 0.525, 0.456, 0.484, 0.474, 0.554, 0.456, 0.515, 0.497, 0.541, 0.544, 0.469, 0.538, 0.523, 0.488, 0.447, 0.538, 0.501, 0.479, 0.524, 0.548, 0.563 ], "successful_rps": 1730.873266238339 }, "small_first": { "elapsed_seconds": 0.030076042, "latency_ms": { "p50": 0.419, "p95": 0.851, "p99": 2.281 }, "plan": { "explain": { "Execution Time": 0.023, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.005, "Actual Total Time": 0.017, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "Actual Total Time": 0.015, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::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": 1007, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 54, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 3096 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 54, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 157.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.059, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 0.472, 0.419, 0.601, 0.581, 0.673, 0.403, 0.448, 0.613, 0.351, 0.448, 0.475, 0.445, 0.51, 0.733, 0.461, 0.487, 0.441, 0.415, 0.418, 0.511, 0.363, 0.42, 0.345, 0.409, 0.386, 0.494, 0.716, 0.438, 0.492, 0.851, 0.354, 0.349, 0.425, 0.33, 0.315, 0.363, 0.365, 0.326, 0.362, 0.906, 0.37, 0.337, 0.311, 0.34, 0.346, 0.422, 0.47, 0.352, 0.349, 0.402, 0.363, 0.376, 0.378, 0.369, 0.364, 0.588, 0.851, 0.624, 2.281, 1.215 ], "successful_rps": 1994.943350591145 } }, "series": 2, "table_bytes": 35618816, "variant": "B", "write_samples_ms": [ 5.831, 3.563, 3.063, 2.766, 30.227, 4.052, 3.197, 2.727, 2.985, 2.94, 3.641, 2.615, 3.275, 2.654, 4.616, 3.871, 3.19, 3.463, 3.323, 3.188 ], "write_wal_bytes": [ 129376, 116992, 117120, 117144, 117136, 121248, 117120, 117120, 121136, 117016, 117120, 117120, 117120, 121136, 116848, 117192, 117120, 117120, 121152, 117120 ] }, { "build_ms": 26.819, "columns": "chat_id", "dataset_sha256": "fc94357a9bd1c43db1d4c890482cb7ce3df0ca75d168608e38d81a3f6c55276f", "index_bytes": 720896, "insert_200_with_commit_ms": { "p50": 2.744, "p95": 6.08, "p99": 7.233 }, "order": 2, "read_cases": { "large_deep": { "elapsed_seconds": 0.553743042, "latency_ms": { "p50": 8.912, "p95": 11.207, "p99": 16.097 }, "plan": { "explain": { "Execution Time": 7.187, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 5.718, "Actual Total Time": 7.16, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 5.717, "Actual Total Time": 7.155, "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": 14160, "Plan Width": 316, "Plans": [ { "Actual Loops": 3, "Actual Rows": 47.33, "Actual Startup Time": 4.02, "Actual Total Time": 4.022, "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": 5900, "Plan Width": 316, "Plans": [ { "Actual Loops": 3, "Actual Rows": 4666.33, "Actual Startup Time": 2.789, "Actual Total Time": 3.584, "Alias": "messages", "Async Capable": false, "Disabled": false, "Filter": "((chat_id = '5832e110-981c-437d-8328-db45f37d874a'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.001+00'::timestamp with time zone, 'd62723dc-9cbd-4043-b5c1-f32937d5f11f'::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": 5900, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Filter": 28667, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4326, "Shared Read Blocks": 22, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 5077.17, "Workers": [] } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4356, "Shared Read Blocks": 22, "Shared Written Blocks": 0, "Sort Key": [ "created_at", "id" ], "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Startup Cost": 5274, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 5288.75, "Workers": [ { "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Worker Number": 0 }, { "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Worker Number": 1 } ] } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4356, "Shared Read Blocks": 22, "Shared Written Blocks": 0, "Startup Cost": 6274.03, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 7923.19, "Workers Launched": 2, "Workers Planned": 2 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4356, "Shared Read Blocks": 22, "Shared Written Blocks": 0, "Startup Cost": 6274.03, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 6279.97 }, "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.064, "Triggers": [] }, "max_visited_rows": 99999.99 }, "samples_ms": [ 9.123, 8.923, 16.097, 8.956, 8.978, 8.884, 8.783, 8.644, 9.059, 8.638, 8.475, 8.86, 9.447, 9.016, 11.207, 9.588, 9.2, 9.4, 8.86, 8.912, 9.17, 8.404, 8.428, 9.08, 8.95, 10.299, 9.364, 8.883, 8.638, 8.876, 8.815, 8.439, 8.272, 9.042, 8.926, 8.71, 8.837, 8.77, 8.618, 9.102, 8.835, 8.87, 8.573, 8.956, 8.662, 8.844, 8.665, 8.795, 11.373, 14.3, 9.351, 8.756, 9.985, 9.614, 8.986, 9.054, 8.868, 8.562, 8.922, 8.981 ], "successful_rps": 108.35350595701028 }, "large_first": { "elapsed_seconds": 0.51799775, "latency_ms": { "p50": 8.165, "p95": 10.278, "p99": 21.616 }, "plan": { "explain": { "Execution Time": 13.979, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 12.043, "Actual Total Time": 13.957, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 12.042, "Actual Total Time": 13.953, "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": 70097, "Plan Width": 316, "Plans": [ { "Actual Loops": 3, "Actual Rows": 51, "Actual Startup Time": 9.92, "Actual Total Time": 9.923, "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": 29207, "Plan Width": 316, "Plans": [ { "Actual Loops": 3, "Actual Rows": 23333.33, "Actual Startup Time": 0.012, "Actual Total Time": 8.027, "Alias": "messages", "Async Capable": false, "Disabled": false, "Filter": "(chat_id = '5832e110-981c-437d-8328-db45f37d874a'::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": 29207, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Filter": 10000, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4071, "Shared Read Blocks": 277, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4868.83, "Workers": [] } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4161, "Shared Read Blocks": 277, "Shared Written Blocks": 0, "Sort Key": [ "created_at", "id" ], "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Startup Cost": 5843.24, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 5916.26, "Workers": [ { "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Worker Number": 0 }, { "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Worker Number": 1 } ] } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4161, "Shared Read Blocks": 277, "Shared Written Blocks": 0, "Startup Cost": 6843.26, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 15007.22, "Workers Launched": 2, "Workers Planned": 2 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4161, "Shared Read Blocks": 277, "Shared Written Blocks": 0, "Startup Cost": 6843.26, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 6849.2 }, "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.111, "Triggers": [] }, "max_visited_rows": 99999.99 }, "samples_ms": [ 8.991, 9.13, 21.616, 11.761, 10.852, 8.816, 8.79, 8.511, 9.336, 9.334, 8.119, 8.207, 8.338, 8.039, 8.025, 8.13, 8.165, 7.78, 8.095, 8.177, 8.115, 7.896, 8.958, 7.743, 7.657, 8.247, 8.032, 7.576, 7.695, 7.536, 7.893, 7.889, 8.596, 8.226, 10.278, 8.079, 8.178, 7.746, 7.918, 8.164, 8.024, 7.97, 8.481, 8.136, 8.172, 8.333, 8.218, 8.235, 7.803, 7.8, 7.967, 8.435, 8.771, 9.229, 8.391, 8.95, 10.231, 8.102, 8.159, 7.861 ], "successful_rps": 115.8306189553912 }, "medium_deep": { "elapsed_seconds": 0.079015833, "latency_ms": { "p50": 1.215, "p95": 1.499, "p99": 5.364 }, "plan": { "explain": { "Execution Time": 0.901, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.884, "Actual Total Time": 0.889, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.884, "Actual Total Time": 0.886, "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": 1212, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1199, "Actual Startup Time": 0.648, "Actual Total Time": 0.787, "Alias": "messages", "Async Capable": false, "Disabled": false, "Exact Heap Blocks": 1218, "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:01:20.09+00'::timestamp with time zone, 'ae564c19-8cd2-43ca-b5b8-e5ea8ca16bf1'::uuid))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Lossy Heap Blocks": 0, "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1212, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 6000, "Actual Startup Time": 0.134, "Actual Total Time": 0.134, "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::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": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 6027, "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 69.5 } ], "Recheck Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::uuid)", "Relation Name": "messages", "Rows Removed by Filter": 4801, "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 69.8, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4751.39 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "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": 50, "Startup Cost": 4791.83, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4794.86 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 4791.83, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4791.95 }, "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.097, "Triggers": [] }, "max_visited_rows": 6000 }, "samples_ms": [ 1.215, 1.174, 1.109, 1.132, 1.299, 1.187, 1.183, 1.34, 1.283, 1.243, 1.263, 1.191, 1.154, 1.183, 1.126, 1.206, 1.279, 1.189, 1.158, 1.138, 1.163, 1.158, 1.151, 1.222, 1.113, 1.133, 1.196, 1.206, 1.36, 1.22, 1.143, 1.301, 1.138, 1.353, 1.63, 1.26, 1.242, 1.224, 1.208, 1.268, 1.267, 1.172, 1.146, 1.169, 1.499, 1.288, 1.187, 1.184, 1.13, 1.225, 1.338, 1.231, 1.227, 1.254, 2.018, 1.376, 1.249, 1.413, 5.364, 1.455 ], "successful_rps": 759.3414853957181 }, "medium_first": { "elapsed_seconds": 0.085477041, "latency_ms": { "p50": 1.35, "p95": 1.722, "p99": 4.184 }, "plan": { "explain": { "Execution Time": 1.185, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 1.174, "Actual Total Time": 1.179, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 1.174, "Actual Total Time": 1.176, "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": 6027, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 6000, "Actual Startup Time": 0.189, "Actual Total Time": 0.744, "Alias": "messages", "Async Capable": false, "Disabled": false, "Exact Heap Blocks": 1218, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Lossy Heap Blocks": 0, "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 6027, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 6000, "Actual Startup Time": 0.109, "Actual Total Time": 0.109, "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::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": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 6027, "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 69.5 } ], "Recheck Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::uuid)", "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 71, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4722.46 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "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": 50, "Startup Cost": 4923.53, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4938.6 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 4923.53, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4923.66 }, "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.051, "Triggers": [] }, "max_visited_rows": 6000 }, "samples_ms": [ 1.273, 1.374, 1.445, 1.594, 1.422, 1.32, 1.406, 1.522, 1.491, 1.306, 1.29, 1.385, 1.422, 1.722, 1.413, 1.339, 1.39, 1.363, 1.311, 1.251, 1.246, 1.437, 1.377, 1.369, 1.26, 1.293, 1.477, 1.493, 1.301, 1.297, 1.287, 1.298, 1.426, 1.284, 1.303, 1.257, 1.279, 1.414, 1.385, 1.241, 1.252, 1.216, 1.287, 1.429, 1.813, 1.233, 1.263, 1.554, 1.35, 1.575, 4.184, 1.85, 1.332, 1.389, 1.409, 1.419, 1.28, 1.285, 1.204, 1.299 ], "successful_rps": 701.9428760993259 }, "small_deep": { "elapsed_seconds": 0.054231333, "latency_ms": { "p50": 0.75, "p95": 1.157, "p99": 6.891 }, "plan": { "explain": { "Execution Time": 0.368, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.356, "Actual Total Time": 0.36, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.356, "Actual Total Time": 0.357, "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": 209, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 199, "Actual Startup Time": 0.289, "Actual Total Time": 0.339, "Alias": "messages", "Async Capable": false, "Disabled": false, "Exact Heap Blocks": 1000, "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:01:20.099+00'::timestamp with time zone, '484e251a-e47b-46aa-9386-c8a7d6228bd6'::uuid))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Lossy Heap Blocks": 0, "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 209, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1000, "Actual Startup Time": 0.042, "Actual Total Time": 0.042, "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::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": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1040, "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 12.09 } ], "Recheck Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::uuid)", "Relation Name": "messages", "Rows Removed by Filter": 801, "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 12.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2458.1 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "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": 50, "Startup Cost": 2465.07, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2465.59 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 2465.07, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2465.2 }, "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.06, "Triggers": [] }, "max_visited_rows": 1000 }, "samples_ms": [ 0.714, 0.631, 0.718, 0.734, 0.606, 0.645, 0.688, 0.649, 0.817, 0.722, 1.157, 2.853, 0.917, 0.931, 0.801, 0.792, 0.811, 0.792, 0.772, 0.764, 0.771, 0.712, 0.721, 0.745, 0.718, 0.737, 6.891, 1.236, 0.869, 0.779, 0.696, 0.661, 0.689, 0.738, 0.845, 0.691, 0.636, 0.656, 0.661, 0.657, 0.792, 0.717, 0.934, 0.787, 0.812, 0.804, 0.822, 0.75, 0.737, 0.789, 0.767, 0.787, 0.791, 0.716, 0.8, 0.728, 0.839, 0.819, 0.669, 0.685 ], "successful_rps": 1106.3714771680054 }, "small_first": { "elapsed_seconds": 0.052601042, "latency_ms": { "p50": 0.813, "p95": 1.022, "p99": 3.624 }, "plan": { "explain": { "Execution Time": 0.4, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.385, "Actual Total Time": 0.389, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.384, "Actual Total Time": 0.386, "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": 1040, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1000, "Actual Startup Time": 0.117, "Actual Total Time": 0.317, "Alias": "messages", "Async Capable": false, "Disabled": false, "Exact Heap Blocks": 1000, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Lossy Heap Blocks": 0, "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1040, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1000, "Actual Startup Time": 0.05, "Actual Total Time": 0.05, "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::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": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1040, "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 12.09 } ], "Recheck Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::uuid)", "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 12.35, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2453.1 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "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": 50, "Startup Cost": 2487.8, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2490.4 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 2487.8, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2487.93 }, "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.051, "Triggers": [] }, "max_visited_rows": 1000 }, "samples_ms": [ 0.726, 3.624, 0.864, 0.807, 0.734, 0.702, 0.742, 0.764, 0.807, 0.722, 0.741, 0.684, 0.889, 0.747, 0.765, 0.728, 0.733, 0.858, 1.478, 0.899, 0.796, 0.876, 0.791, 0.893, 0.93, 0.813, 0.821, 0.743, 0.724, 0.705, 0.744, 0.838, 0.813, 0.866, 0.906, 0.865, 0.874, 0.84, 1.016, 1.022, 1.487, 0.946, 0.82, 0.762, 0.813, 0.862, 0.77, 0.841, 0.843, 0.837, 0.905, 0.836, 0.784, 0.885, 0.75, 0.776, 0.7, 0.706, 0.662, 0.644 ], "successful_rps": 1140.6618142659606 } }, "series": 2, "table_bytes": 35618816, "variant": "A", "write_samples_ms": [ 4.788, 4.278, 2.633, 2.63, 2.51, 2.604, 2.372, 2.581, 3.138, 2.983, 2.904, 2.968, 2.861, 2.7, 2.744, 2.674, 2.637, 7.233, 3.792, 6.08 ], "write_wal_bytes": [ 113576, 105944, 104464, 104464, 104440, 104520, 104632, 105120, 104464, 104384, 104520, 104464, 104576, 105208, 104408, 104464, 104464, 104496, 104520, 104688 ] }, { "build_ms": 41.397, "columns": "chat_id", "dataset_sha256": "fc94357a9bd1c43db1d4c890482cb7ce3df0ca75d168608e38d81a3f6c55276f", "index_bytes": 720896, "insert_200_with_commit_ms": { "p50": 3.027, "p95": 5.013, "p99": 6.036 }, "order": 1, "read_cases": { "large_deep": { "elapsed_seconds": 0.550478458, "latency_ms": { "p50": 8.825, "p95": 11.806, "p99": 13.686 }, "plan": { "explain": { "Execution Time": 7.431, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 6.06, "Actual Total Time": 7.418, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 6.059, "Actual Total Time": 7.413, "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": 14321, "Plan Width": 316, "Plans": [ { "Actual Loops": 3, "Actual Rows": 47.33, "Actual Startup Time": 4.539, "Actual Total Time": 4.542, "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": 5967, "Plan Width": 316, "Plans": [ { "Actual Loops": 3, "Actual Rows": 4666.33, "Actual Startup Time": 3.516, "Actual Total Time": 4.187, "Alias": "messages", "Async Capable": false, "Disabled": false, "Filter": "((chat_id = '5832e110-981c-437d-8328-db45f37d874a'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.001+00'::timestamp with time zone, 'd62723dc-9cbd-4043-b5c1-f32937d5f11f'::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": 5967, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Filter": 28667, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4310, "Shared Read Blocks": 38, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 5077.17, "Workers": [] } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4340, "Shared Read Blocks": 38, "Shared Written Blocks": 0, "Sort Key": [ "created_at", "id" ], "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Startup Cost": 5276.24, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 5291.16, "Workers": [ { "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Worker Number": 0 }, { "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Worker Number": 1 } ] } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4340, "Shared Read Blocks": 38, "Shared Written Blocks": 0, "Startup Cost": 6276.26, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 7944.18, "Workers Launched": 2, "Workers Planned": 2 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4340, "Shared Read Blocks": 38, "Shared Written Blocks": 0, "Startup Cost": 6276.26, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 6282.2 }, "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.079, "Triggers": [] }, "max_visited_rows": 99999.99 }, "samples_ms": [ 9.763, 10.394, 9.741, 9.485, 10.2, 8.406, 8.699, 9.047, 8.572, 9.108, 8.751, 8.638, 8.934, 8.55, 8.898, 8.743, 8.992, 8.794, 8.769, 8.444, 9.007, 8.577, 8.875, 8.18, 8.124, 8.059, 8.739, 8.34, 8.825, 8.069, 10.565, 8.905, 9.347, 9.501, 9.614, 10.665, 9.353, 8.717, 8.831, 12.25, 13.686, 12.418, 10.227, 9.751, 11.806, 9.293, 9.255, 8.459, 8.293, 8.193, 9.211, 9.907, 8.223, 8.226, 8.486, 8.182, 8.07, 8.23, 8.695, 8.295 ], "successful_rps": 108.9960908152377 }, "large_first": { "elapsed_seconds": 0.579583375, "latency_ms": { "p50": 8.292, "p95": 15.055, "p99": 18.942 }, "plan": { "explain": { "Execution Time": 48.672, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 16.919, "Actual Total Time": 48.642, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 16.918, "Actual Total Time": 48.638, "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": 69883, "Plan Width": 316, "Plans": [ { "Actual Loops": 3, "Actual Rows": 51, "Actual Startup Time": 13.12, "Actual Total Time": 13.122, "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": 29118, "Plan Width": 316, "Plans": [ { "Actual Loops": 3, "Actual Rows": 23333.33, "Actual Startup Time": 0.096, "Actual Total Time": 10.79, "Alias": "messages", "Async Capable": false, "Disabled": false, "Filter": "(chat_id = '5832e110-981c-437d-8328-db45f37d874a'::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": 29118, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Filter": 10000, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4071, "Shared Read Blocks": 277, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4868.83, "Workers": [] } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4161, "Shared Read Blocks": 277, "Shared Written Blocks": 0, "Sort Key": [ "created_at", "id" ], "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Startup Cost": 5840.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 5913.07, "Workers": [ { "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Worker Number": 0 }, { "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Worker Number": 1 } ] } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4161, "Shared Read Blocks": 277, "Shared Written Blocks": 0, "Startup Cost": 6840.3, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 14979.32, "Workers Launched": 2, "Workers Planned": 2 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4161, "Shared Read Blocks": 277, "Shared Written Blocks": 0, "Startup Cost": 6840.3, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 6846.24 }, "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.21, "Triggers": [] }, "max_visited_rows": 99999.99 }, "samples_ms": [ 10.731, 7.395, 9.192, 7.952, 7.658, 8.517, 12.112, 10.772, 14.58, 11.484, 8.107, 8.184, 8.088, 7.943, 7.906, 8.192, 8.151, 8.12, 8.088, 7.986, 7.679, 8.008, 8.097, 8.016, 7.931, 7.87, 8.006, 7.966, 7.9, 7.884, 8.049, 7.797, 8.019, 8.102, 9.307, 8.655, 8.625, 9.252, 10.298, 8.783, 8.747, 9.07, 8.613, 8.216, 8.563, 8.292, 7.781, 12.294, 13.821, 15.055, 15.464, 15.974, 18.942, 11.752, 9.215, 9.874, 9.33, 12.838, 14.144, 14.098 ], "successful_rps": 103.52263813640272 }, "medium_deep": { "elapsed_seconds": 0.074828125, "latency_ms": { "p50": 1.165, "p95": 1.745, "p99": 2.324 }, "plan": { "explain": { "Execution Time": 0.736, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.725, "Actual Total Time": 0.73, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.725, "Actual Total Time": 0.727, "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": 1208, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1199, "Actual Startup Time": 0.513, "Actual Total Time": 0.637, "Alias": "messages", "Async Capable": false, "Disabled": false, "Exact Heap Blocks": 1218, "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:01:20.09+00'::timestamp with time zone, 'ae564c19-8cd2-43ca-b5b8-e5ea8ca16bf1'::uuid))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Lossy Heap Blocks": 0, "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1208, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 6000, "Actual Startup Time": 0.092, "Actual Total Time": 0.092, "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::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": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 5920, "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 68.69 } ], "Recheck Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::uuid)", "Relation Name": "messages", "Rows Removed by Filter": 4801, "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 68.99, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4750.98 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "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": 50, "Startup Cost": 4791.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4794.3 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 4791.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4791.41 }, "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.056, "Triggers": [] }, "max_visited_rows": 6000 }, "samples_ms": [ 1.214, 1.286, 1.195, 1.205, 1.125, 1.14, 1.135, 1.189, 1.185, 1.106, 1.108, 1.115, 1.271, 1.163, 1.173, 1.123, 2.324, 1.213, 1.25, 1.172, 1.225, 1.157, 1.1, 1.108, 1.127, 1.219, 1.165, 1.102, 1.119, 1.388, 1.163, 1.745, 1.188, 1.121, 1.222, 2.318, 1.323, 1.914, 1.426, 1.165, 1.293, 1.411, 1.216, 1.363, 1.501, 1.314, 1.316, 1.116, 1.096, 1.062, 1.043, 1.078, 1.12, 1.11, 1.122, 1.143, 1.16, 1.146, 1.089, 1.066 ], "successful_rps": 801.8375443725204 }, "medium_first": { "elapsed_seconds": 0.086570208, "latency_ms": { "p50": 1.332, "p95": 1.63, "p99": 4.82 }, "plan": { "explain": { "Execution Time": 1.053, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 1.043, "Actual Total Time": 1.047, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 1.042, "Actual Total Time": 1.044, "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": 5920, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 6000, "Actual Startup Time": 0.192, "Actual Total Time": 0.657, "Alias": "messages", "Async Capable": false, "Disabled": false, "Exact Heap Blocks": 1218, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Lossy Heap Blocks": 0, "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 5920, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 6000, "Actual Startup Time": 0.099, "Actual Total Time": 0.099, "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::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": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 5920, "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 68.69 } ], "Recheck Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::uuid)", "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 70.17, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4722.56 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "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": 50, "Startup Cost": 4920.06, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4934.86 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 4920.06, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4920.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.059, "Triggers": [] }, "max_visited_rows": 6000 }, "samples_ms": [ 1.464, 1.36, 1.283, 1.319, 1.375, 1.411, 1.332, 1.488, 1.254, 1.289, 1.463, 1.314, 1.63, 1.332, 1.332, 1.406, 1.54, 1.461, 1.37, 1.274, 1.338, 1.289, 1.267, 1.302, 1.355, 1.398, 1.336, 1.307, 1.254, 1.412, 1.359, 1.294, 1.255, 1.296, 1.249, 1.513, 1.347, 1.281, 1.315, 1.293, 1.283, 1.342, 1.467, 1.284, 1.26, 1.355, 3.405, 1.442, 1.239, 1.288, 1.231, 1.273, 1.306, 1.266, 1.305, 1.302, 1.337, 1.726, 4.82, 1.394 ], "successful_rps": 693.0790786594853 }, "small_deep": { "elapsed_seconds": 0.05992575, "latency_ms": { "p50": 0.781, "p95": 1.967, "p99": 4.234 }, "plan": { "explain": { "Execution Time": 0.587, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.574, "Actual Total Time": 0.579, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.573, "Actual Total Time": 0.575, "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": 193, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 199, "Actual Startup Time": 0.478, "Actual Total Time": 0.55, "Alias": "messages", "Async Capable": false, "Disabled": false, "Exact Heap Blocks": 1000, "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:01:20.099+00'::timestamp with time zone, '484e251a-e47b-46aa-9386-c8a7d6228bd6'::uuid))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Lossy Heap Blocks": 0, "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 193, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1000, "Actual Startup Time": 0.058, "Actual Total Time": 0.058, "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::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": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 947, "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 11.39 } ], "Recheck Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::uuid)", "Relation Name": "messages", "Rows Removed by Filter": 801, "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 11.44, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2308.58 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "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": 50, "Startup Cost": 2315.02, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2315.5 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 2315.02, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2315.14 }, "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.077, "Triggers": [] }, "max_visited_rows": 1000 }, "samples_ms": [ 0.771, 1.14, 0.814, 0.785, 0.769, 0.743, 0.814, 0.773, 0.748, 0.743, 0.82, 0.953, 0.902, 0.727, 0.734, 0.704, 0.75, 0.727, 3.501, 0.812, 0.836, 0.84, 1.182, 3.293, 1.694, 0.844, 0.728, 0.786, 0.805, 0.758, 0.758, 0.877, 0.818, 0.86, 0.717, 0.768, 0.789, 4.234, 0.833, 0.776, 0.735, 0.785, 0.804, 0.756, 0.772, 0.787, 0.713, 0.714, 0.753, 0.781, 0.781, 0.779, 0.755, 1.967, 0.859, 0.742, 0.711, 1.961, 0.675, 1.087 ], "successful_rps": 1001.2390333037133 }, "small_first": { "elapsed_seconds": 0.048966834, "latency_ms": { "p50": 0.791, "p95": 0.993, "p99": 1.183 }, "plan": { "explain": { "Execution Time": 0.41, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.4, "Actual Total Time": 0.404, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.4, "Actual Total Time": 0.401, "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": 947, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1000, "Actual Startup Time": 0.123, "Actual Total Time": 0.333, "Alias": "messages", "Async Capable": false, "Disabled": false, "Exact Heap Blocks": 1000, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Lossy Heap Blocks": 0, "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 947, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1000, "Actual Startup Time": 0.059, "Actual Total Time": 0.06, "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::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": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 947, "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 11.39 } ], "Recheck Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::uuid)", "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 11.63, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2304.03 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "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": 50, "Startup Cost": 2335.63, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2337.99 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 2335.63, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2335.75 }, "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.059, "Triggers": [] }, "max_visited_rows": 1000 }, "samples_ms": [ 0.87, 1.038, 0.993, 0.848, 0.796, 0.765, 0.791, 0.748, 0.792, 0.742, 0.767, 0.843, 0.801, 0.882, 0.98, 0.787, 1.183, 0.81, 0.849, 0.762, 0.767, 0.787, 0.758, 0.717, 0.73, 0.741, 0.783, 0.795, 1.175, 0.926, 0.727, 0.719, 0.807, 0.89, 0.822, 0.77, 0.789, 0.83, 0.753, 0.702, 0.729, 0.733, 0.806, 0.857, 0.863, 0.96, 0.742, 0.705, 0.75, 0.826, 0.717, 0.892, 0.812, 0.748, 0.75, 0.785, 0.797, 0.762, 0.793, 0.821 ], "successful_rps": 1225.3191619454099 } }, "series": 3, "table_bytes": 35618816, "variant": "A", "write_samples_ms": [ 6.036, 5.013, 3.787, 2.98, 3.298, 3.027, 3.212, 4.926, 3.934, 3.255, 2.979, 2.806, 2.721, 2.891, 3.414, 3.301, 2.896, 2.726, 2.58, 2.749 ], "write_wal_bytes": [ 113576, 105944, 104464, 104440, 104464, 104520, 104632, 105096, 104464, 104408, 104520, 104440, 104576, 105232, 104408, 104440, 104464, 104520, 104520, 104688 ] }, { "build_ms": 67.655, "columns": "chat_id,created_at,id", "dataset_sha256": "fc94357a9bd1c43db1d4c890482cb7ce3df0ca75d168608e38d81a3f6c55276f", "index_bytes": 5914624, "insert_200_with_commit_ms": { "p50": 2.888, "p95": 3.612, "p99": 5.661 }, "order": 2, "read_cases": { "large_deep": { "elapsed_seconds": 0.4012915, "latency_ms": { "p50": 6.534, "p95": 7.775, "p99": 8.801 }, "plan": { "explain": { "Execution Time": 0.058, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.035, "Actual Total Time": 0.044, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.034, "Actual Total Time": 0.04, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "((chat_id = '5832e110-981c-437d-8328-db45f37d874a'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.001+00'::timestamp with time zone, 'd62723dc-9cbd-4043-b5c1-f32937d5f11f'::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": 13931, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 1, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 15389.63 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 1, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 56.76 }, "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.088, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 6.534, 7.282, 6.343, 6.236, 6.76, 7.639, 6.959, 6.896, 7.392, 7.9, 8.801, 6.571, 6.256, 6.416, 7.386, 6.495, 6.197, 6.548, 6.772, 6.349, 6.596, 6.346, 6.432, 6.829, 6.216, 6.978, 6.131, 5.835, 5.852, 6.127, 7.196, 7.707, 7.372, 7.004, 6.48, 6.625, 6.534, 6.608, 5.736, 5.729, 6.383, 5.879, 6.101, 5.965, 6.313, 6.613, 6.334, 6.083, 7.176, 6.3, 7.185, 7.196, 6.677, 6.48, 6.439, 6.383, 6.91, 6.777, 7.775, 8.153 ], "successful_rps": 149.51724619135965 }, "large_first": { "elapsed_seconds": 0.032330167, "latency_ms": { "p50": 0.412, "p95": 1.155, "p99": 2.395 }, "plan": { "explain": { "Execution Time": 0.016, "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": 316, "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 = '5832e110-981c-437d-8328-db45f37d874a'::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": 69977, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 18345.55 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 13.79 }, "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.057, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 0.584, 0.435, 0.72, 0.639, 0.794, 0.51, 0.984, 0.828, 1.305, 2.395, 1.164, 0.941, 0.646, 0.481, 0.928, 0.355, 0.401, 0.437, 0.473, 0.447, 0.396, 0.494, 0.368, 0.428, 0.317, 0.373, 0.367, 0.432, 0.409, 0.354, 0.398, 0.45, 0.433, 0.412, 0.397, 0.354, 0.505, 0.517, 0.434, 0.397, 0.353, 0.367, 0.372, 0.389, 0.334, 0.38, 0.362, 0.436, 0.445, 0.375, 0.357, 0.359, 0.354, 0.307, 0.379, 1.155, 0.74, 0.374, 0.384, 0.355 ], "successful_rps": 1855.8518426459102 }, "medium_deep": { "elapsed_seconds": 0.073422334, "latency_ms": { "p50": 0.974, "p95": 2.153, "p99": 5.412 }, "plan": { "explain": { "Execution Time": 0.022, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.005, "Actual Total Time": 0.015, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.005, "Actual Total Time": 0.012, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "((chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.09+00'::timestamp with time zone, 'ae564c19-8cd2-43ca-b5b8-e5ea8ca16bf1'::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": 1198, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 16, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 3607.39 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 16, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 153.97 }, "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.07, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 1.131, 1.294, 1.14, 3.967, 2.388, 1.911, 1.147, 0.996, 1.011, 0.903, 0.938, 0.885, 0.808, 0.805, 0.91, 0.991, 2.153, 5.412, 0.929, 0.836, 0.862, 1.099, 0.99, 1.263, 0.943, 0.794, 0.89, 0.873, 0.844, 0.831, 0.862, 0.934, 0.938, 1.073, 0.818, 0.805, 0.906, 1.046, 0.974, 0.947, 0.94, 0.925, 0.83, 0.935, 0.935, 1.128, 1.639, 1.249, 1.028, 1.328, 1.819, 1.299, 1.282, 1.189, 1.238, 2.065, 1.384, 1.068, 0.913, 0.923 ], "successful_rps": 817.1900392052369 }, "medium_first": { "elapsed_seconds": 0.039406333, "latency_ms": { "p50": 0.502, "p95": 1.186, "p99": 4.311 }, "plan": { "explain": { "Execution Time": 0.021, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.005, "Actual Total Time": 0.015, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "Actual Total Time": 0.011, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::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": 6047, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 12309.81 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 104.23 }, "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.066, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 0.477, 0.47, 0.706, 0.373, 0.364, 0.79, 0.635, 0.963, 0.504, 1.009, 0.795, 0.465, 0.399, 0.785, 1.139, 1.186, 4.311, 1.104, 0.502, 0.362, 0.311, 0.558, 0.959, 0.544, 0.659, 0.597, 0.393, 0.548, 0.466, 0.464, 1.353, 0.624, 0.635, 1.741, 0.773, 0.386, 0.391, 0.571, 0.395, 0.389, 0.356, 0.517, 0.45, 0.531, 0.52, 0.788, 1.019, 0.624, 0.397, 0.368, 0.351, 0.359, 0.394, 0.427, 0.348, 0.331, 0.351, 0.332, 0.37, 0.424 ], "successful_rps": 1522.5979032355028 }, "small_deep": { "elapsed_seconds": 0.038054333, "latency_ms": { "p50": 0.546, "p95": 1.086, "p99": 1.806 }, "plan": { "explain": { "Execution Time": 0.025, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "Actual Total Time": 0.016, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "((chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.099+00'::timestamp with time zone, '484e251a-e47b-46aa-9386-c8a7d6228bd6'::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": 203, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 55, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 683.03 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 55, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 171.91 }, "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.066, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 0.55, 0.585, 0.525, 0.497, 0.548, 0.546, 0.511, 0.5, 0.531, 0.48, 0.525, 0.557, 0.548, 0.658, 0.491, 0.554, 0.492, 0.535, 0.527, 0.507, 0.585, 0.48, 0.469, 0.733, 0.728, 1.578, 1.244, 0.527, 0.612, 0.481, 0.492, 0.555, 0.562, 0.897, 0.642, 0.956, 1.086, 0.991, 1.806, 1.014, 0.775, 0.611, 0.593, 0.503, 0.532, 0.553, 0.515, 0.531, 0.495, 0.58, 0.499, 0.546, 0.523, 0.471, 0.467, 0.507, 0.521, 0.552, 0.604, 0.52 ], "successful_rps": 1576.6929878918124 }, "small_first": { "elapsed_seconds": 0.029204667, "latency_ms": { "p50": 0.376, "p95": 0.719, "p99": 4.66 }, "plan": { "explain": { "Execution Time": 0.022, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "Actual Total Time": 0.017, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "Actual Total Time": 0.014, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::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": 1027, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 54, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 3145.88 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 54, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 156.62 }, "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.059, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 0.409, 0.391, 0.452, 0.375, 0.298, 0.306, 0.313, 0.326, 0.29, 0.3, 0.316, 0.354, 0.346, 0.711, 0.7, 0.473, 0.719, 0.488, 0.39, 0.327, 0.331, 0.297, 0.329, 0.77, 4.66, 0.472, 0.376, 0.38, 0.338, 0.356, 0.358, 0.343, 0.371, 0.377, 0.399, 0.47, 0.45, 0.395, 0.419, 0.441, 0.439, 0.353, 0.36, 0.371, 0.433, 0.519, 0.508, 0.359, 0.427, 0.361, 0.36, 0.35, 0.374, 0.433, 0.409, 0.474, 0.887, 0.446, 0.345, 0.317 ], "successful_rps": 2054.4661577548545 } }, "series": 3, "table_bytes": 35618816, "variant": "B", "write_samples_ms": [ 5.661, 3.612, 2.94, 3.565, 3.356, 3.117, 2.888, 2.611, 2.636, 2.671, 2.63, 2.627, 2.766, 2.499, 2.861, 2.537, 2.979, 3.088, 2.898, 2.921 ], "write_wal_bytes": [ 129376, 116848, 117168, 117168, 117144, 121112, 116824, 117120, 117168, 121184, 117088, 117192, 117120, 117168, 121296, 117120, 117144, 117168, 121136, 117120 ] }, { "build_ms": 52.238, "columns": "chat_id,created_at,id", "dataset_sha256": "fc94357a9bd1c43db1d4c890482cb7ce3df0ca75d168608e38d81a3f6c55276f", "index_bytes": 5914624, "insert_200_with_commit_ms": { "p50": 2.856, "p95": 5.068, "p99": 6.408 }, "order": 1, "read_cases": { "large_deep": { "elapsed_seconds": 0.507306083, "latency_ms": { "p50": 7.188, "p95": 16.252, "p99": 18.71 }, "plan": { "explain": { "Execution Time": 0.046, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.026, "Actual Total Time": 0.034, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.025, "Actual Total Time": 0.031, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "((chat_id = '5832e110-981c-437d-8328-db45f37d874a'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.001+00'::timestamp with time zone, 'd62723dc-9cbd-4043-b5c1-f32937d5f11f'::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": 13834, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 1, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 15352.55 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 1, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 57.01 }, "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.088, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 9.997, 10.515, 9.429, 10.295, 8.874, 12.502, 10.803, 17.344, 16.706, 18.71, 8.34, 9.9, 14.027, 16.252, 11.4, 10.098, 7.456, 6.928, 7.474, 6.751, 7.188, 6.289, 6.917, 6.118, 6.824, 7.817, 6.675, 6.032, 5.982, 6.21, 6.426, 6.225, 6.2, 6.17, 7.029, 10.609, 9.078, 6.925, 6.381, 6.597, 10.397, 7.204, 6.355, 6.402, 7.737, 9.823, 7.522, 6.687, 7.167, 7.264, 6.983, 6.263, 6.327, 6.247, 6.586, 6.929, 7.539, 6.831, 7.642, 7.794 ], "successful_rps": 118.27179292860953 }, "large_first": { "elapsed_seconds": 0.077977, "latency_ms": { "p50": 0.952, "p95": 3.227, "p99": 5.567 }, "plan": { "explain": { "Execution Time": 0.018, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.005, "Actual Total Time": 0.012, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.005, "Actual Total Time": 0.009, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = '5832e110-981c-437d-8328-db45f37d874a'::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": 70170, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 18328.15 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 13.74 }, "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.17, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 0.954, 0.668, 0.512, 1.12, 1.629, 1.553, 0.57, 0.766, 1.084, 0.889, 0.652, 0.388, 0.843, 0.745, 0.971, 0.621, 0.505, 0.629, 1.299, 2.874, 3.771, 3.308, 1.903, 2.009, 5.567, 2.964, 2.198, 0.978, 0.87, 3.227, 0.873, 0.642, 0.623, 1.248, 0.952, 0.689, 0.427, 0.89, 0.48, 0.809, 1.001, 2.171, 1.216, 1.851, 1.845, 2.086, 1.475, 1.847, 1.332, 0.824, 0.971, 0.919, 0.916, 1.194, 1.503, 0.815, 0.715, 0.492, 0.466, 0.555 ], "successful_rps": 769.4576605922259 }, "medium_deep": { "elapsed_seconds": 0.051536459, "latency_ms": { "p50": 0.837, "p95": 1.15, "p99": 1.263 }, "plan": { "explain": { "Execution Time": 0.025, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.006, "Actual Total Time": 0.017, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.005, "Actual Total Time": 0.013, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "((chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.09+00'::timestamp with time zone, 'ae564c19-8cd2-43ca-b5b8-e5ea8ca16bf1'::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": 1205, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 16, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 3620.09 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 16, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 153.62 }, "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.068, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 0.885, 1.263, 1.178, 0.846, 0.772, 0.764, 0.778, 0.749, 0.825, 0.769, 0.782, 0.737, 0.79, 0.791, 0.8, 0.88, 0.852, 0.861, 0.893, 0.814, 0.782, 0.865, 0.834, 1.15, 1.244, 0.841, 0.853, 0.837, 0.838, 0.804, 0.829, 0.865, 0.84, 0.885, 0.905, 0.864, 0.841, 0.805, 0.801, 0.817, 0.877, 0.881, 0.838, 0.894, 0.912, 0.821, 0.832, 0.813, 0.857, 0.818, 0.861, 0.933, 0.901, 0.821, 0.792, 0.861, 0.805, 0.829, 0.807, 0.803 ], "successful_rps": 1164.224340675016 }, "medium_first": { "elapsed_seconds": 0.027490958, "latency_ms": { "p50": 0.36, "p95": 0.647, "p99": 4.171 }, "plan": { "explain": { "Execution Time": 0.018, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "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": 316, "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 = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::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": 6140, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 12397.94 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 103.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.066, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 0.393, 0.375, 0.371, 0.417, 0.325, 0.432, 0.385, 0.322, 0.286, 0.355, 0.313, 0.444, 0.341, 0.356, 0.337, 0.343, 0.322, 0.647, 0.443, 0.342, 0.348, 0.339, 0.291, 0.295, 0.318, 0.42, 0.336, 0.525, 0.453, 0.408, 0.348, 0.395, 0.36, 0.465, 0.548, 0.429, 0.423, 0.463, 0.323, 0.37, 0.82, 0.76, 0.512, 0.368, 0.418, 0.373, 0.336, 0.318, 0.333, 0.289, 0.338, 0.312, 0.292, 0.302, 0.31, 0.569, 4.171, 0.48, 0.392, 0.337 ], "successful_rps": 2182.5357995890868 }, "small_deep": { "elapsed_seconds": 0.044966792, "latency_ms": { "p50": 0.554, "p95": 1.321, "p99": 6.36 }, "plan": { "explain": { "Execution Time": 0.025, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "Actual Total Time": 0.016, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "((chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.099+00'::timestamp with time zone, '484e251a-e47b-46aa-9386-c8a7d6228bd6'::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": 197, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 55, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 661.37 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 55, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 171.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.079, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 0.55, 0.769, 1.188, 2.179, 0.845, 0.6, 0.522, 0.552, 0.546, 0.532, 0.526, 1.03, 6.36, 1.321, 0.62, 0.632, 2.14, 0.675, 0.584, 0.553, 0.566, 0.51, 0.516, 0.518, 0.588, 0.59, 0.633, 0.585, 0.695, 0.626, 0.544, 0.585, 0.525, 0.56, 0.588, 0.528, 0.575, 0.55, 0.595, 0.56, 0.54, 0.54, 0.529, 0.529, 0.494, 0.541, 0.532, 0.542, 0.532, 0.548, 0.517, 0.495, 0.506, 0.562, 0.535, 0.502, 0.554, 0.583, 0.561, 0.578 ], "successful_rps": 1334.3180007148387 }, "small_first": { "elapsed_seconds": 0.021804416, "latency_ms": { "p50": 0.346, "p95": 0.431, "p99": 0.911 }, "plan": { "explain": { "Execution Time": 0.021, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.004, "Actual Total Time": 0.017, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.003, "Actual Total Time": 0.014, "Alias": "messages", "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::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": 1007, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 54, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 3085.14 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 54, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 156.64 }, "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.054, "Triggers": [] }, "max_visited_rows": 51 }, "samples_ms": [ 0.431, 0.381, 0.37, 0.421, 0.404, 0.369, 0.319, 0.334, 0.359, 0.324, 0.321, 0.356, 0.386, 0.308, 0.387, 0.355, 0.387, 0.324, 0.355, 0.346, 0.344, 0.347, 0.317, 0.336, 0.347, 0.315, 0.349, 0.348, 0.338, 0.342, 0.347, 0.399, 0.335, 0.911, 0.448, 0.456, 0.324, 0.368, 0.369, 0.337, 0.306, 0.338, 0.39, 0.318, 0.311, 0.33, 0.389, 0.341, 0.341, 0.327, 0.339, 0.336, 0.323, 0.297, 0.308, 0.396, 0.401, 0.355, 0.339, 0.358 ], "successful_rps": 2751.736162069188 } }, "series": 4, "table_bytes": 35618816, "variant": "B", "write_samples_ms": [ 6.408, 4.601, 5.068, 4.786, 3.161, 3.265, 2.918, 3.822, 2.911, 2.8, 2.812, 2.723, 2.852, 2.639, 2.658, 2.833, 2.856, 2.94, 2.757, 2.757 ], "write_wal_bytes": [ 129376, 116944, 117192, 117168, 117120, 117120, 121104, 117120, 117192, 121136, 116800, 117168, 117168, 117144, 117120, 121392, 117168, 117168, 121136, 117016 ] }, { "build_ms": 43.158, "columns": "chat_id", "dataset_sha256": "fc94357a9bd1c43db1d4c890482cb7ce3df0ca75d168608e38d81a3f6c55276f", "index_bytes": 720896, "insert_200_with_commit_ms": { "p50": 3.304, "p95": 6.567, "p99": 6.615 }, "order": 2, "read_cases": { "large_deep": { "elapsed_seconds": 0.526501, "latency_ms": { "p50": 8.177, "p95": 11.112, "p99": 25.147 }, "plan": { "explain": { "Execution Time": 7.325, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 5.932, "Actual Total Time": 7.305, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 5.931, "Actual Total Time": 7.301, "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": 13970, "Plan Width": 316, "Plans": [ { "Actual Loops": 3, "Actual Rows": 47.33, "Actual Startup Time": 4.131, "Actual Total Time": 4.133, "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": 5821, "Plan Width": 316, "Plans": [ { "Actual Loops": 3, "Actual Rows": 4666.33, "Actual Startup Time": 3.125, "Actual Total Time": 3.778, "Alias": "messages", "Async Capable": false, "Disabled": false, "Filter": "((chat_id = '5832e110-981c-437d-8328-db45f37d874a'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:20.001+00'::timestamp with time zone, 'd62723dc-9cbd-4043-b5c1-f32937d5f11f'::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": 5821, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Filter": 28667, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4331, "Shared Read Blocks": 17, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 5077.17, "Workers": [] } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4361, "Shared Read Blocks": 17, "Shared Written Blocks": 0, "Sort Key": [ "created_at", "id" ], "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Startup Cost": 5271.37, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 5285.92, "Workers": [ { "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Worker Number": 0 }, { "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Worker Number": 1 } ] } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4361, "Shared Read Blocks": 17, "Shared Written Blocks": 0, "Startup Cost": 6271.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 7898.43, "Workers Launched": 2, "Workers Planned": 2 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4361, "Shared Read Blocks": 17, "Shared Written Blocks": 0, "Startup Cost": 6271.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 6277.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.065, "Triggers": [] }, "max_visited_rows": 99999.99 }, "samples_ms": [ 8.442, 8.235, 25.147, 11.112, 10.351, 8.335, 8.486, 8.693, 8.27, 8.7, 8.091, 10.274, 8.339, 8.61, 8.177, 8.164, 7.828, 7.685, 7.623, 8.056, 8.145, 7.77, 7.981, 7.927, 7.707, 7.533, 7.639, 7.873, 7.689, 7.867, 7.618, 7.554, 7.795, 7.522, 7.513, 7.744, 7.719, 7.714, 8.152, 9.07, 8.268, 7.679, 7.583, 7.731, 8.52, 8.437, 11.001, 11.478, 8.871, 8.997, 10.775, 9.717, 8.804, 9.178, 11.676, 8.895, 8.519, 8.151, 8.576, 8.402 ], "successful_rps": 113.95989751206551 }, "large_first": { "elapsed_seconds": 0.503577041, "latency_ms": { "p50": 8.156, "p95": 10.384, "p99": 11.321 }, "plan": { "explain": { "Execution Time": 11.48, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 10.172, "Actual Total Time": 11.454, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 10.171, "Actual Total Time": 11.45, "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": 69811, "Plan Width": 316, "Plans": [ { "Actual Loops": 3, "Actual Rows": 51, "Actual Startup Time": 8.304, "Actual Total Time": 8.307, "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": 29088, "Plan Width": 316, "Plans": [ { "Actual Loops": 3, "Actual Rows": 23333.33, "Actual Startup Time": 0.028, "Actual Total Time": 6.505, "Alias": "messages", "Async Capable": false, "Disabled": false, "Filter": "(chat_id = '5832e110-981c-437d-8328-db45f37d874a'::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": 29088, "Plan Width": 316, "Relation Name": "messages", "Rows Removed by Filter": 10000, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4071, "Shared Read Blocks": 277, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4868.83, "Workers": [] } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4161, "Shared Read Blocks": 277, "Shared Written Blocks": 0, "Sort Key": [ "created_at", "id" ], "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Startup Cost": 5839.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 5911.99, "Workers": [ { "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Worker Number": 0 }, { "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 50, "Worker Number": 1 } ] } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4161, "Shared Read Blocks": 277, "Shared Written Blocks": 0, "Startup Cost": 6839.29, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 14969.94, "Workers Launched": 2, "Workers Planned": 2 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4161, "Shared Read Blocks": 277, "Shared Written Blocks": 0, "Startup Cost": 6839.29, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 6845.23 }, "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.16, "Triggers": [] }, "max_visited_rows": 99999.99 }, "samples_ms": [ 10.384, 9.202, 8.687, 8.377, 8.866, 8.645, 8.341, 8.267, 8.362, 8.41, 8.412, 8.418, 8.156, 8.176, 7.908, 7.726, 8.128, 8.228, 8.255, 8.067, 8.234, 7.6, 7.682, 7.67, 7.742, 7.836, 7.758, 7.771, 8.896, 7.578, 7.757, 7.708, 7.731, 7.929, 8.257, 7.817, 7.697, 7.685, 9.347, 9.977, 8.571, 8.604, 8.435, 8.058, 7.971, 8.565, 8.154, 7.793, 8.057, 8.005, 8.073, 7.811, 7.742, 7.811, 9.041, 9.216, 9.587, 10.551, 11.321, 10.416 ], "successful_rps": 119.14760824054328 }, "medium_deep": { "elapsed_seconds": 0.088145708, "latency_ms": { "p50": 1.152, "p95": 3.067, "p99": 5.649 }, "plan": { "explain": { "Execution Time": 4.311, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 4.287, "Actual Total Time": 4.296, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 4.286, "Actual Total Time": 4.293, "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": 1211, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1199, "Actual Startup Time": 3.822, "Actual Total Time": 4.164, "Alias": "messages", "Async Capable": false, "Disabled": false, "Exact Heap Blocks": 1218, "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:01:20.09+00'::timestamp with time zone, 'ae564c19-8cd2-43ca-b5b8-e5ea8ca16bf1'::uuid))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Lossy Heap Blocks": 0, "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1211, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 6000, "Actual Startup Time": 0.462, "Actual Total Time": 0.463, "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::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": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 6077, "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 69.87 } ], "Recheck Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::uuid)", "Relation Name": "messages", "Rows Removed by Filter": 4801, "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 70.17, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4751.26 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "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": 50, "Startup Cost": 4791.66, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4794.68 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 4791.66, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4791.78 }, "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.344, "Triggers": [] }, "max_visited_rows": 6000 }, "samples_ms": [ 1.094, 1.126, 1.303, 1.236, 1.08, 1.046, 1.234, 1.277, 1.15, 1.034, 1.075, 1.105, 1.24, 1.195, 1.104, 1.101, 1.035, 1.16, 1.099, 1.094, 1.072, 1.123, 1.092, 1.171, 1.125, 1.119, 1.104, 1.042, 1.152, 1.08, 1.169, 1.303, 1.309, 1.134, 1, 1.068, 1.238, 1.343, 1.372, 1.127, 1.074, 1.067, 1.144, 1.409, 1.14, 1.193, 1.249, 1.609, 5.649, 3.85, 1.938, 1.527, 1.367, 1.521, 1.275, 1.735, 5.095, 2.409, 3.067, 2.839 ], "successful_rps": 680.6911120391704 }, "medium_first": { "elapsed_seconds": 0.084712584, "latency_ms": { "p50": 1.339, "p95": 1.575, "p99": 3.394 }, "plan": { "explain": { "Execution Time": 1.345, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 1.335, "Actual Total Time": 1.339, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 1.334, "Actual Total Time": 1.336, "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": 6077, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 6000, "Actual Startup Time": 0.213, "Actual Total Time": 0.877, "Alias": "messages", "Async Capable": false, "Disabled": false, "Exact Heap Blocks": 1218, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Lossy Heap Blocks": 0, "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 6077, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 6000, "Actual Startup Time": 0.114, "Actual Total Time": 0.114, "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::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": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 6077, "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 69.87 } ], "Recheck Cond": "(chat_id = 'd6346e8b-20de-49df-829b-ba00cf6dba2c'::uuid)", "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 71.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4722.09 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "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": 50, "Startup Cost": 4924.83, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4940.02 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1225, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 4924.83, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4924.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.053, "Triggers": [] }, "max_visited_rows": 6000 }, "samples_ms": [ 1.339, 1.52, 1.566, 1.373, 1.278, 1.257, 1.29, 1.486, 1.575, 1.338, 1.235, 1.344, 1.354, 1.357, 1.32, 1.279, 1.228, 1.277, 1.327, 1.35, 1.448, 1.301, 1.281, 1.391, 1.401, 1.297, 1.224, 1.276, 1.347, 1.403, 1.342, 1.276, 1.287, 1.389, 1.343, 1.309, 1.512, 3.394, 2.664, 1.416, 1.338, 1.395, 1.474, 1.516, 1.373, 1.259, 1.362, 1.386, 1.323, 1.257, 1.309, 1.414, 1.677, 1.263, 1.255, 1.292, 1.573, 1.3, 1.231, 1.233 ], "successful_rps": 708.2772967945353 }, "small_deep": { "elapsed_seconds": 0.04892975, "latency_ms": { "p50": 0.757, "p95": 1.42, "p99": 1.837 }, "plan": { "explain": { "Execution Time": 0.409, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.395, "Actual Total Time": 0.4, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.395, "Actual Total Time": 0.397, "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": 189, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 199, "Actual Startup Time": 0.321, "Actual Total Time": 0.377, "Alias": "messages", "Async Capable": false, "Disabled": false, "Exact Heap Blocks": 1000, "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:01:20.099+00'::timestamp with time zone, '484e251a-e47b-46aa-9386-c8a7d6228bd6'::uuid))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Lossy Heap Blocks": 0, "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 189, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1000, "Actual Startup Time": 0.055, "Actual Total Time": 0.055, "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::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": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 950, "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 11.42 } ], "Recheck Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::uuid)", "Relation Name": "messages", "Rows Removed by Filter": 801, "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 11.46, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2314.66 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "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": 50, "Startup Cost": 2320.97, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2321.44 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 2320.97, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2321.1 }, "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.077, "Triggers": [] }, "max_visited_rows": 1000 }, "samples_ms": [ 0.785, 0.79, 1.42, 1.837, 1.564, 1.708, 0.777, 0.836, 0.784, 0.782, 0.856, 0.732, 0.746, 0.811, 0.764, 0.746, 0.747, 0.724, 0.723, 0.852, 0.762, 0.804, 0.795, 0.798, 0.767, 0.778, 0.702, 0.678, 0.686, 0.715, 0.802, 0.879, 0.774, 0.757, 0.704, 0.728, 0.749, 0.781, 0.682, 0.712, 0.746, 0.905, 0.815, 0.659, 0.709, 0.722, 0.69, 0.696, 0.757, 0.704, 0.758, 0.732, 0.75, 0.77, 0.71, 0.738, 0.728, 0.757, 0.704, 0.787 ], "successful_rps": 1226.2478349061664 }, "small_first": { "elapsed_seconds": 0.051576792, "latency_ms": { "p50": 0.757, "p95": 1.447, "p99": 2.231 }, "plan": { "explain": { "Execution Time": 0.527, "Plan": { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.508, "Actual Total Time": 0.514, "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": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 51, "Actual Startup Time": 0.507, "Actual Total Time": 0.51, "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": 950, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1000, "Actual Startup Time": 0.142, "Actual Total Time": 0.428, "Alias": "messages", "Async Capable": false, "Disabled": false, "Exact Heap Blocks": 1000, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Lossy Heap Blocks": 0, "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 950, "Plan Width": 316, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1000, "Actual Startup Time": 0.07, "Actual Total Time": 0.07, "Async Capable": false, "Disabled": false, "Index Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::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": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 950, "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 11.42 } ], "Recheck Cond": "(chat_id = '0c70f28e-2307-484a-80c6-5eaa80b20fba'::uuid)", "Relation Name": "messages", "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 11.66, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2310.1 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "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": 50, "Startup Cost": 2341.8, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2344.17 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1002, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 2341.8, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 2341.93 }, "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.09, "Triggers": [] }, "max_visited_rows": 1000 }, "samples_ms": [ 1.115, 1.447, 1.096, 1.623, 1.339, 1.079, 1.166, 2.044, 2.231, 0.763, 0.741, 0.777, 0.713, 0.707, 0.827, 0.943, 0.685, 0.702, 0.731, 0.66, 0.635, 0.697, 0.717, 0.757, 0.709, 0.737, 0.76, 0.929, 1.101, 0.79, 0.813, 0.767, 0.725, 0.786, 0.801, 0.724, 0.705, 0.718, 0.774, 0.77, 0.719, 0.772, 0.827, 0.832, 0.726, 0.661, 0.642, 0.723, 0.802, 0.851, 0.784, 0.688, 0.684, 0.646, 0.656, 0.743, 0.723, 0.751, 0.713, 0.776 ], "successful_rps": 1163.3139183995777 } }, "series": 4, "table_bytes": 35618816, "variant": "A", "write_samples_ms": [ 6.615, 4.725, 3.509, 3.402, 3.194, 6.567, 5.931, 4.096, 4.44, 2.948, 2.825, 2.593, 2.493, 3.026, 3.304, 5.593, 3.378, 3.022, 2.809, 3.065 ], "write_wal_bytes": [ 113576, 105944, 104464, 104464, 104464, 104496, 104632, 105120, 104464, 104384, 104520, 104464, 104576, 105232, 104384, 104464, 104464, 104520, 104496, 104688 ] } ], "warmup_per_case": 5, "write_batches_per_trial": 20, "resources": { "sample_interval_seconds": 0.5, "sample_count": 48, "sample_window_seconds": 23.648109541998565, "mean_cpu_cores": 0.7734427975105795, "mean_cpu_percent_of_limit": 77.34427975105795, "rss_first_bytes": 31113216, "rss_peak_observed_bytes": 31113216, "cgroup_memory_peak_observed_bytes": 536600576, "oom_kill_count": 0, "samples": [ { "seconds": 0.0878, "rss_bytes": 31113216, "cgroup_memory_bytes": 77598720, "cpu_usage_usec": 839004, "oom_kill_count": 0 }, { "seconds": 0.5941, "rss_bytes": 31113216, "cgroup_memory_bytes": 77352960, "cpu_usage_usec": 847905, "oom_kill_count": 0 }, { "seconds": 1.0881, "rss_bytes": 31113216, "cgroup_memory_bytes": 159072256, "cpu_usage_usec": 1137324, "oom_kill_count": 0 }, { "seconds": 1.7377, "rss_bytes": 31113216, "cgroup_memory_bytes": 176484352, "cpu_usage_usec": 1797637, "oom_kill_count": 0 }, { "seconds": 2.0898, "rss_bytes": 31113216, "cgroup_memory_bytes": 223236096, "cpu_usage_usec": 2108105, "oom_kill_count": 0 }, { "seconds": 2.62, "rss_bytes": 31113216, "cgroup_memory_bytes": 296771584, "cpu_usage_usec": 2638731, "oom_kill_count": 0 }, { "seconds": 3.1352, "rss_bytes": 31113216, "cgroup_memory_bytes": 306257920, "cpu_usage_usec": 3117738, "oom_kill_count": 0 }, { "seconds": 3.6639, "rss_bytes": 31113216, "cgroup_memory_bytes": 335020032, "cpu_usage_usec": 3558149, "oom_kill_count": 0 }, { "seconds": 4.1141, "rss_bytes": 31113216, "cgroup_memory_bytes": 319434752, "cpu_usage_usec": 4002450, "oom_kill_count": 0 }, { "seconds": 4.614, "rss_bytes": 31113216, "cgroup_memory_bytes": 319066112, "cpu_usage_usec": 4448900, "oom_kill_count": 0 }, { "seconds": 5.1276, "rss_bytes": 31113216, "cgroup_memory_bytes": 319340544, "cpu_usage_usec": 4943257, "oom_kill_count": 0 }, { "seconds": 5.6292, "rss_bytes": 31113216, "cgroup_memory_bytes": 319156224, "cpu_usage_usec": 5341840, "oom_kill_count": 0 }, { "seconds": 6.182, "rss_bytes": 31113216, "cgroup_memory_bytes": 371605504, "cpu_usage_usec": 5765688, "oom_kill_count": 0 }, { "seconds": 6.6643, "rss_bytes": 31113216, "cgroup_memory_bytes": 354230272, "cpu_usage_usec": 5969054, "oom_kill_count": 0 }, { "seconds": 7.26, "rss_bytes": 31113216, "cgroup_memory_bytes": 381444096, "cpu_usage_usec": 6541883, "oom_kill_count": 0 }, { "seconds": 7.7344, "rss_bytes": 31113216, "cgroup_memory_bytes": 376811520, "cpu_usage_usec": 6956872, "oom_kill_count": 0 }, { "seconds": 8.1403, "rss_bytes": 31113216, "cgroup_memory_bytes": 377417728, "cpu_usage_usec": 7296586, "oom_kill_count": 0 }, { "seconds": 8.6457, "rss_bytes": 31113216, "cgroup_memory_bytes": 435503104, "cpu_usage_usec": 7615226, "oom_kill_count": 0 }, { "seconds": 9.493, "rss_bytes": 31113216, "cgroup_memory_bytes": 420974592, "cpu_usage_usec": 8160431, "oom_kill_count": 0 }, { "seconds": 9.7216, "rss_bytes": 31113216, "cgroup_memory_bytes": 417243136, "cpu_usage_usec": 8408744, "oom_kill_count": 0 }, { "seconds": 10.1383, "rss_bytes": 31113216, "cgroup_memory_bytes": 410988544, "cpu_usage_usec": 8779903, "oom_kill_count": 0 }, { "seconds": 10.6403, "rss_bytes": 31113216, "cgroup_memory_bytes": 411041792, "cpu_usage_usec": 9163699, "oom_kill_count": 0 }, { "seconds": 11.1932, "rss_bytes": 31113216, "cgroup_memory_bytes": 487079936, "cpu_usage_usec": 9520043, "oom_kill_count": 0 }, { "seconds": 11.6954, "rss_bytes": 31113216, "cgroup_memory_bytes": 472469504, "cpu_usage_usec": 9819973, "oom_kill_count": 0 }, { "seconds": 12.1574, "rss_bytes": 31113216, "cgroup_memory_bytes": 457576448, "cpu_usage_usec": 10290849, "oom_kill_count": 0 }, { "seconds": 12.6553, "rss_bytes": 31113216, "cgroup_memory_bytes": 457707520, "cpu_usage_usec": 10774188, "oom_kill_count": 0 }, { "seconds": 13.1498, "rss_bytes": 31113216, "cgroup_memory_bytes": 457400320, "cpu_usage_usec": 11225801, "oom_kill_count": 0 }, { "seconds": 13.6509, "rss_bytes": 31113216, "cgroup_memory_bytes": 468799488, "cpu_usage_usec": 11570217, "oom_kill_count": 0 }, { "seconds": 14.154, "rss_bytes": 31113216, "cgroup_memory_bytes": 526004224, "cpu_usage_usec": 11813202, "oom_kill_count": 0 }, { "seconds": 14.6488, "rss_bytes": 31113216, "cgroup_memory_bytes": 488275968, "cpu_usage_usec": 12300599, "oom_kill_count": 0 }, { "seconds": 15.1569, "rss_bytes": 31113216, "cgroup_memory_bytes": 491700224, "cpu_usage_usec": 12794448, "oom_kill_count": 0 }, { "seconds": 15.6552, "rss_bytes": 31113216, "cgroup_memory_bytes": 488550400, "cpu_usage_usec": 13248414, "oom_kill_count": 0 }, { "seconds": 16.1493, "rss_bytes": 31113216, "cgroup_memory_bytes": 488833024, "cpu_usage_usec": 13596323, "oom_kill_count": 0 }, { "seconds": 16.6737, "rss_bytes": 31113216, "cgroup_memory_bytes": 482721792, "cpu_usage_usec": 13853810, "oom_kill_count": 0 }, { "seconds": 17.1591, "rss_bytes": 31113216, "cgroup_memory_bytes": 495353856, "cpu_usage_usec": 14307988, "oom_kill_count": 0 }, { "seconds": 17.6734, "rss_bytes": 31113216, "cgroup_memory_bytes": 495403008, "cpu_usage_usec": 14744639, "oom_kill_count": 0 }, { "seconds": 18.2206, "rss_bytes": 31113216, "cgroup_memory_bytes": 536170496, "cpu_usage_usec": 15079100, "oom_kill_count": 0 }, { "seconds": 18.685, "rss_bytes": 31113216, "cgroup_memory_bytes": 486678528, "cpu_usage_usec": 15142239, "oom_kill_count": 0 }, { "seconds": 19.4316, "rss_bytes": 31113216, "cgroup_memory_bytes": 528183296, "cpu_usage_usec": 15869250, "oom_kill_count": 0 }, { "seconds": 19.7672, "rss_bytes": 31113216, "cgroup_memory_bytes": 513224704, "cpu_usage_usec": 16134653, "oom_kill_count": 0 }, { "seconds": 20.1852, "rss_bytes": 31113216, "cgroup_memory_bytes": 512692224, "cpu_usage_usec": 16506582, "oom_kill_count": 0 }, { "seconds": 20.6892, "rss_bytes": 31113216, "cgroup_memory_bytes": 535805952, "cpu_usage_usec": 16860502, "oom_kill_count": 0 }, { "seconds": 21.2272, "rss_bytes": 31113216, "cgroup_memory_bytes": 536600576, "cpu_usage_usec": 17105160, "oom_kill_count": 0 }, { "seconds": 21.6993, "rss_bytes": 31113216, "cgroup_memory_bytes": 487223296, "cpu_usage_usec": 17563949, "oom_kill_count": 0 }, { "seconds": 22.1912, "rss_bytes": 31113216, "cgroup_memory_bytes": 487743488, "cpu_usage_usec": 18026851, "oom_kill_count": 0 }, { "seconds": 22.6992, "rss_bytes": 31113216, "cgroup_memory_bytes": 487501824, "cpu_usage_usec": 18510029, "oom_kill_count": 0 }, { "seconds": 23.203, "rss_bytes": 31113216, "cgroup_memory_bytes": 488497152, "cpu_usage_usec": 18873233, "oom_kill_count": 0 }, { "seconds": 23.7359, "rss_bytes": 31113216, "cgroup_memory_bytes": 482328576, "cpu_usage_usec": 19129464, "oom_kill_count": 0 } ], "method": "RSS: /proc/1/status VmRSS. CPU: delta cgroup-v2 usage_usec / sample window. cgroup memory includes cache and sampling processes; it is not RSS. Peaks are sampled, not exact maxima." } }