{ "date_utc": "2026-10-30T11:04:35.421935+00:00", "source_sha256": { "src/store.py": "162782315e7df8a4e2a442b5accaa0620d5b6214cc5c361017d69b306f76cfc6", "migrations/001_initial.sql": "a009840617a4d08a7b18bdcffb588920838678e19a19b3918cbb0849c2ac81a9", "research/worker.py": "52ec875ab656277887cc1239f05ca4ba8200228de8a1dabfbdbbca8c339e1cc5" }, "method": "Isolated skewed PostgreSQL datasets; 30 sequential reads after 3 warmups; 10 committed INSERT batches of 1000 rows; fresh restore volume.", "limitations": [ "Local single-host measurements; warm buffers; no concurrent HTTP capacity claim.", "EXPLAIN insert wall times include plan collection and COMMIT; 10 batches do not establish a write SLA.", "Logical backup is a snapshot, not PITR or HA; the post-dump canary is intentionally absent after restore." ], "query_experiment": { "postgres_version": "17.9 (Debian 17.9-1.pgdg12+1)", "dataset_messages": 100000, "chat_sizes": [ 80000, 15000, 4000, 1000 ], "read_repeats": 30, "warmup_queries": 3, "write_batches": 10, "write_batch_size": 1000, "limits": { "postgres_cpus": 1, "postgres_memory_mib": 512, "client_cpus": 1, "client_memory_mib": 512 }, "variants": [ { "name": "chat_only", "database": "lab2_research_e09aa1b4_chat_only", "seed_seconds": 0.8756, "table_bytes": 20021248, "indexes_bytes": 5455872, "write_runs": [ { "commit_wall_ms": 11.5286, "execution_ms": 9.524, "wal_bytes": 386092, "shared_dirtied_blocks": 31 }, { "commit_wall_ms": 9.9018, "execution_ms": 8.992, "wal_bytes": 400880, "shared_dirtied_blocks": 34 }, { "commit_wall_ms": 9.6394, "execution_ms": 8.765, "wal_bytes": 390012, "shared_dirtied_blocks": 32 }, { "commit_wall_ms": 9.8604, "execution_ms": 8.889, "wal_bytes": 379068, "shared_dirtied_blocks": 28 }, { "commit_wall_ms": 9.7735, "execution_ms": 8.874, "wal_bytes": 367380, "shared_dirtied_blocks": 24 }, { "commit_wall_ms": 9.3423, "execution_ms": 8.538, "wal_bytes": 375332, "shared_dirtied_blocks": 28 }, { "commit_wall_ms": 8.9664, "execution_ms": 8.28, "wal_bytes": 368072, "shared_dirtied_blocks": 25 }, { "commit_wall_ms": 9.5945, "execution_ms": 8.681, "wal_bytes": 382676, "shared_dirtied_blocks": 30 }, { "commit_wall_ms": 9.9285, "execution_ms": 8.947, "wal_bytes": 371756, "shared_dirtied_blocks": 26 }, { "commit_wall_ms": 9.2812, "execution_ms": 8.499, "wal_bytes": 378296, "shared_dirtied_blocks": 27 } ], "write_commit_ms": { "p50": 9.6394, "p95": 11.5286, "p99": 11.5286, "mean": 9.7817 }, "reads": [ { "chat_size": 80000, "query": "keyset", "latency_ms": { "p50": 7.0761, "p95": 7.1933, "p99": 7.1945, "mean": 7.0884 }, "raw_latency_ms": [ 7.1945, 7.0456, 7.0677, 6.9425, 6.9956, 7.0325, 6.9857, 7.1158, 7.0837, 7.0636, 7.1851, 7.112, 7.1655, 7.1372, 7.0726, 7.1933, 7.0881, 7.0583, 7.0782, 7.0714, 7.172, 7.0634, 7.0387, 7.0761, 7.1624, 7.0884, 7.0871, 7.0658, 7.0226, 7.1865 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 141.064, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 4583.62, "Total Cost": 4583.74, "Plan Rows": 50, "Plan Width": 162, "Actual Startup Time": 6.726, "Actual Total Time": 6.732, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 2017, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Sort", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 4583.62, "Total Cost": 4623.51, "Plan Rows": 15957, "Plan Width": 162, "Actual Startup Time": 6.726, "Actual Total Time": 6.728, "Actual Rows": 50, "Actual Loops": 1, "Sort Key": [ "created_at", "id" ], "Sort Method": "quicksort", "Sort Space Used": 50, "Sort Space Type": "Memory", "Shared Hit Blocks": 2017, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_only_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.29, "Total Cost": 4053.53, "Plan Rows": 15957, "Plan Width": 162, "Actual Startup Time": 6.692, "Actual Total Time": 6.715, "Actual Rows": 100, "Actual Loops": 1, "Index Cond": "(chat_id = '00000000-0000-0000-0000-000000000001'::uuid)", "Rows Removed by Index Recheck": 0, "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.0799+00'::timestamp with time zone, '4c258fbb-7ab4-ca0e-1a48-23111d989887'::uuid))", "Rows Removed by Filter": 79900, "Shared Hit Blocks": 2017, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.044, "Triggers": [], "Execution Time": 6.74 } }, { "chat_size": 80000, "query": "offset", "latency_ms": { "p50": 24.9378, "p95": 28.3299, "p99": 29.9997, "mean": 25.4597 }, "raw_latency_ms": [ 24.7768, 24.6414, 24.9378, 24.4358, 24.1052, 24.2144, 24.6242, 24.3533, 25.1993, 25.3574, 25.3675, 29.9997, 28.3299, 25.9315, 24.3103, 23.9882, 26.5002, 27.6485, 27.0724, 27.0823, 27.9675, 27.3795, 26.1129, 26.4398, 26.2524, 23.8179, 23.6142, 23.2457, 22.9133, 23.1718 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 39.275, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 16971.36, "Total Cost": 16971.49, "Plan Rows": 50, "Plan Width": 162, "Actual Startup Time": 51.018, "Actual Total Time": 51.027, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 2017, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 1742, "Temp Written Blocks": 1747, "Plans": [ { "Node Type": "Sort", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 16771.61, "Total Cost": 16972.2, "Plan Rows": 80233, "Plan Width": 162, "Actual Startup Time": 39.315, "Actual Total Time": 48.181, "Actual Rows": 79950, "Actual Loops": 1, "Sort Key": [ "created_at", "id" ], "Sort Method": "external merge", "Sort Space Used": 13936, "Sort Space Type": "Disk", "Shared Hit Blocks": 2017, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 1742, "Temp Written Blocks": 1747, "Plans": [ { "Node Type": "Index Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_only_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.29, "Total Cost": 3652.37, "Plan Rows": 80233, "Plan Width": 162, "Actual Startup Time": 0.01, "Actual Total Time": 7.926, "Actual Rows": 80000, "Actual Loops": 1, "Index Cond": "(chat_id = '00000000-0000-0000-0000-000000000001'::uuid)", "Rows Removed by Index Recheck": 0, "Shared Hit Blocks": 2017, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.072, "Triggers": [], "Execution Time": 51.932 } }, { "chat_size": 15000, "query": "keyset", "latency_ms": { "p50": 1.4773, "p95": 1.5489, "p99": 1.5723, "mean": 1.4867 }, "raw_latency_ms": [ 1.4891, 1.4852, 1.5267, 1.5221, 1.4782, 1.4716, 1.4668, 1.478, 1.4559, 1.4603, 1.492, 1.4773, 1.459, 1.4697, 1.4777, 1.4993, 1.4817, 1.4659, 1.4485, 1.4569, 1.4668, 1.5444, 1.4605, 1.4554, 1.4745, 1.5723, 1.5445, 1.5489, 1.4955, 1.4772 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 672.438, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 779.4, "Total Cost": 779.52, "Plan Rows": 50, "Plan Width": 162, "Actual Startup Time": 1.266, "Actual Total Time": 1.271, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 379, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Sort", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 779.4, "Total Cost": 781.27, "Plan Rows": 747, "Plan Width": 162, "Actual Startup Time": 1.265, "Actual Total Time": 1.267, "Actual Rows": 50, "Actual Loops": 1, "Sort Key": [ "created_at", "id" ], "Sort Method": "quicksort", "Sort Space Used": 50, "Sort Space Type": "Memory", "Shared Hit Blocks": 379, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_only_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.29, "Total Cost": 754.59, "Plan Rows": 747, "Plan Width": 162, "Actual Startup Time": 1.243, "Actual Total Time": 1.255, "Actual Rows": 100, "Actual Loops": 1, "Index Cond": "(chat_id = '00000000-0000-0000-0000-000000000002'::uuid)", "Rows Removed by Index Recheck": 0, "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.0949+00'::timestamp with time zone, '83309d4e-6a9c-bf24-ec2c-d0ad8d47e31e'::uuid))", "Rows Removed by Filter": 14900, "Shared Hit Blocks": 379, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.074, "Triggers": [], "Execution Time": 1.279 } }, { "chat_size": 15000, "query": "offset", "latency_ms": { "p50": 4.1769, "p95": 8.9294, "p99": 9.3571, "mean": 4.5287 }, "raw_latency_ms": [ 3.9992, 4.1769, 4.1085, 9.3571, 4.3402, 4.0119, 3.9902, 4.159, 4.0303, 4.2165, 4.5519, 4.7326, 4.3163, 4.1272, 4.8157, 8.9294, 4.4488, 4.278, 4.4118, 4.1779, 3.9815, 4.3006, 4.6323, 3.932, 3.8745, 3.8335, 3.9477, 3.8701, 3.9719, 4.3378 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 220.78, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 1743.69, "Total Cost": 1743.69, "Plan Rows": 1, "Plan Width": 162, "Actual Startup Time": 6.012, "Actual Total Time": 6.02, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 379, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 328, "Temp Written Blocks": 329, "Plans": [ { "Node Type": "Sort", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 1706.66, "Total Cost": 1743.69, "Plan Rows": 14813, "Plan Width": 162, "Actual Startup Time": 4.225, "Actual Total Time": 5.504, "Actual Rows": 14950, "Actual Loops": 1, "Sort Key": [ "created_at", "id" ], "Sort Method": "external merge", "Sort Space Used": 2624, "Sort Space Type": "Disk", "Shared Hit Blocks": 379, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 328, "Temp Written Blocks": 329, "Plans": [ { "Node Type": "Index Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_only_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.29, "Total Cost": 680.52, "Plan Rows": 14813, "Plan Width": 162, "Actual Startup Time": 0.006, "Actual Total Time": 1.521, "Actual Rows": 15000, "Actual Loops": 1, "Index Cond": "(chat_id = '00000000-0000-0000-0000-000000000002'::uuid)", "Rows Removed by Index Recheck": 0, "Shared Hit Blocks": 379, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.027, "Triggers": [], "Execution Time": 6.17 } }, { "chat_size": 4000, "query": "keyset", "latency_ms": { "p50": 0.6269, "p95": 0.8833, "p99": 0.9718, "mean": 0.6489 }, "raw_latency_ms": [ 0.6667, 0.6633, 0.8833, 0.6693, 0.6508, 0.7086, 0.6538, 0.7583, 0.6407, 0.7791, 0.5865, 0.6176, 0.7591, 0.9718, 0.751, 0.6269, 0.6428, 0.6371, 0.5982, 0.5791, 0.5791, 0.5623, 0.5722, 0.5835, 0.5617, 0.5422, 0.5575, 0.5559, 0.546, 0.5618 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 1539.583, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 208.17, "Total Cost": 208.27, "Plan Rows": 43, "Plan Width": 162, "Actual Startup Time": 0.346, "Actual Total Time": 0.352, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 104, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Sort", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 208.17, "Total Cost": 208.27, "Plan Rows": 43, "Plan Width": 162, "Actual Startup Time": 0.346, "Actual Total Time": 0.348, "Actual Rows": 50, "Actual Loops": 1, "Sort Key": [ "created_at", "id" ], "Sort Method": "quicksort", "Sort Space Used": 50, "Sort Space Type": "Memory", "Shared Hit Blocks": 104, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_only_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.29, "Total Cost": 207.0, "Plan Rows": 43, "Plan Width": 162, "Actual Startup Time": 0.324, "Actual Total Time": 0.336, "Actual Rows": 100, "Actual Loops": 1, "Index Cond": "(chat_id = '00000000-0000-0000-0000-000000000003'::uuid)", "Rows Removed by Index Recheck": 0, "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.0989+00'::timestamp with time zone, '3ca7f544-85f6-3d47-6ce5-72ab53f46142'::uuid))", "Rows Removed by Filter": 3900, "Shared Hit Blocks": 104, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.077, "Triggers": [], "Execution Time": 0.36 } }, { "chat_size": 4000, "query": "offset", "latency_ms": { "p50": 0.6617, "p95": 1.123, "p99": 1.5037, "mean": 0.729 }, "raw_latency_ms": [ 0.6681, 0.6432, 0.6471, 0.6594, 0.6617, 0.6541, 0.6335, 0.6689, 0.6442, 0.6426, 0.6442, 0.658, 0.7162, 0.7088, 0.8265, 0.7309, 0.677, 0.668, 0.651, 0.6417, 0.6567, 0.6553, 0.6392, 0.6815, 0.6943, 0.7807, 1.5037, 0.8532, 1.123, 0.8366 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 1370.731, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 435.26, "Total Cost": 435.38, "Plan Rows": 50, "Plan Width": 162, "Actual Startup Time": 0.976, "Actual Total Time": 0.982, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 104, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Sort", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 425.51, "Total Cost": 435.48, "Plan Rows": 3987, "Plan Width": 162, "Actual Startup Time": 0.671, "Actual Total Time": 0.84, "Actual Rows": 3950, "Actual Loops": 1, "Sort Key": [ "created_at", "id" ], "Sort Method": "quicksort", "Sort Space Used": 1128, "Sort Space Type": "Memory", "Shared Hit Blocks": 104, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_only_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.29, "Total Cost": 187.06, "Plan Rows": 3987, "Plan Width": 162, "Actual Startup Time": 0.005, "Actual Total Time": 0.364, "Actual Rows": 4000, "Actual Loops": 1, "Index Cond": "(chat_id = '00000000-0000-0000-0000-000000000003'::uuid)", "Rows Removed by Index Recheck": 0, "Shared Hit Blocks": 104, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.019, "Triggers": [], "Execution Time": 0.989 } }, { "chat_size": 1000, "query": "keyset", "latency_ms": { "p50": 0.3048, "p95": 0.443, "p99": 0.6305, "mean": 0.325 }, "raw_latency_ms": [ 0.308, 0.319, 0.2923, 0.294, 0.3007, 0.3048, 0.3013, 0.3191, 0.3412, 0.443, 0.6305, 0.3525, 0.3222, 0.3087, 0.3078, 0.3036, 0.3035, 0.3029, 0.3091, 0.2937, 0.2918, 0.3296, 0.3577, 0.3153, 0.3032, 0.3124, 0.294, 0.2951, 0.3019, 0.2896 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 3072.865, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 53.06, "Total Cost": 53.06, "Plan Rows": 1, "Plan Width": 162, "Actual Startup Time": 0.101, "Actual Total Time": 0.107, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 27, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Sort", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 53.06, "Total Cost": 53.06, "Plan Rows": 1, "Plan Width": 162, "Actual Startup Time": 0.101, "Actual Total Time": 0.103, "Actual Rows": 50, "Actual Loops": 1, "Sort Key": [ "created_at", "id" ], "Sort Method": "quicksort", "Sort Space Used": 50, "Sort Space Type": "Memory", "Shared Hit Blocks": 27, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_only_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.29, "Total Cost": 53.05, "Plan Rows": 1, "Plan Width": 162, "Actual Startup Time": 0.08, "Actual Total Time": 0.092, "Actual Rows": 100, "Actual Loops": 1, "Index Cond": "(chat_id = '00000000-0000-0000-0000-000000000004'::uuid)", "Rows Removed by Index Recheck": 0, "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.0999+00'::timestamp with time zone, '7fa13929-f6d0-fc18-76f9-46306abe42ca'::uuid))", "Rows Removed by Filter": 900, "Shared Hit Blocks": 27, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.067, "Triggers": [], "Execution Time": 0.115 } }, { "chat_size": 1000, "query": "offset", "latency_ms": { "p50": 0.3366, "p95": 0.4242, "p99": 0.4286, "mean": 0.3492 }, "raw_latency_ms": [ 0.3735, 0.3238, 0.3473, 0.3185, 0.319, 0.3433, 0.3205, 0.3139, 0.3342, 0.3158, 0.3344, 0.3477, 0.3227, 0.3212, 0.3645, 0.3983, 0.3515, 0.354, 0.3337, 0.3295, 0.4286, 0.414, 0.4242, 0.389, 0.3699, 0.3508, 0.3351, 0.3229, 0.3366, 0.3368 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 2860.548, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 98.42, "Total Cost": 98.54, "Plan Rows": 50, "Plan Width": 162, "Actual Startup Time": 0.298, "Actual Total Time": 0.304, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 27, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Sort", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 96.17, "Total Cost": 98.58, "Plan Rows": 967, "Plan Width": 162, "Actual Startup Time": 0.163, "Actual Total Time": 0.242, "Actual Rows": 950, "Actual Loops": 1, "Sort Key": [ "created_at", "id" ], "Sort Method": "quicksort", "Sort Space Used": 282, "Sort Space Type": "Memory", "Shared Hit Blocks": 27, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_only_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.29, "Total Cost": 48.21, "Plan Rows": 967, "Plan Width": 162, "Actual Startup Time": 0.004, "Actual Total Time": 0.091, "Actual Rows": 1000, "Actual Loops": 1, "Index Cond": "(chat_id = '00000000-0000-0000-0000-000000000004'::uuid)", "Rows Removed by Index Recheck": 0, "Shared Hit Blocks": 27, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.019, "Triggers": [], "Execution Time": 0.312 } } ] }, { "name": "keyset", "database": "lab2_research_e09aa1b4_keyset", "seed_seconds": 0.9453, "table_bytes": 20021248, "indexes_bytes": 11698176, "write_runs": [ { "commit_wall_ms": 12.1678, "execution_ms": 10.483, "wal_bytes": 460176, "shared_dirtied_blocks": 43 }, { "commit_wall_ms": 11.4934, "execution_ms": 10.325, "wal_bytes": 474664, "shared_dirtied_blocks": 46 }, { "commit_wall_ms": 10.289, "execution_ms": 9.276, "wal_bytes": 463744, "shared_dirtied_blocks": 44 }, { "commit_wall_ms": 9.9325, "execution_ms": 9.007, "wal_bytes": 452800, "shared_dirtied_blocks": 40 }, { "commit_wall_ms": 9.5215, "execution_ms": 8.692, "wal_bytes": 437944, "shared_dirtied_blocks": 36 }, { "commit_wall_ms": 9.6942, "execution_ms": 8.842, "wal_bytes": 452928, "shared_dirtied_blocks": 41 }, { "commit_wall_ms": 9.3175, "execution_ms": 8.613, "wal_bytes": 441856, "shared_dirtied_blocks": 37 }, { "commit_wall_ms": 10.5368, "execution_ms": 8.682, "wal_bytes": 456408, "shared_dirtied_blocks": 42 }, { "commit_wall_ms": 11.4386, "execution_ms": 10.19, "wal_bytes": 445488, "shared_dirtied_blocks": 38 }, { "commit_wall_ms": 10.5862, "execution_ms": 9.668, "wal_bytes": 448912, "shared_dirtied_blocks": 39 } ], "write_commit_ms": { "p50": 10.289, "p95": 12.1678, "p99": 12.1678, "mean": 10.4977 }, "reads": [ { "chat_size": 80000, "query": "keyset", "latency_ms": { "p50": 0.2249, "p95": 0.2545, "p99": 0.3508, "mean": 0.2318 }, "raw_latency_ms": [ 0.2507, 0.2534, 0.3508, 0.2332, 0.2198, 0.2226, 0.2395, 0.2545, 0.2281, 0.2288, 0.2328, 0.2252, 0.2284, 0.225, 0.2247, 0.2362, 0.2197, 0.2186, 0.2248, 0.2344, 0.22, 0.222, 0.2189, 0.2172, 0.2151, 0.2249, 0.2205, 0.2218, 0.2325, 0.2104 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 4307.199, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.42, "Total Cost": 16.91, "Plan Rows": 50, "Plan Width": 162, "Actual Startup Time": 0.004, "Actual Total Time": 0.014, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_created_id_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.42, "Total Cost": 5376.21, "Plan Rows": 16299, "Plan Width": 162, "Actual Startup Time": 0.004, "Actual Total Time": 0.01, "Actual Rows": 50, "Actual Loops": 1, "Index Cond": "((chat_id = '00000000-0000-0000-0000-000000000001'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0799+00'::timestamp with time zone, '4c258fbb-7ab4-ca0e-1a48-23111d989887'::uuid)))", "Rows Removed by Index Recheck": 0, "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.019, "Triggers": [], "Execution Time": 0.02 } }, { "chat_size": 80000, "query": "offset", "latency_ms": { "p50": 6.9243, "p95": 12.6501, "p99": 15.0282, "mean": 7.8992 }, "raw_latency_ms": [ 6.9314, 6.6215, 6.6125, 7.0876, 6.4968, 6.9243, 6.571, 6.2754, 6.1013, 6.1353, 6.0583, 6.721, 6.1335, 6.7827, 10.0007, 10.1573, 9.4869, 12.6501, 10.1362, 15.0282, 12.1204, 9.08, 6.7563, 6.2658, 6.9835, 8.125, 7.2746, 7.5422, 7.3887, 6.5264 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 126.569, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 9467.91, "Total Cost": 9468.02, "Plan Rows": 1, "Plan Width": 162, "Actual Startup Time": 11.335, "Actual Total Time": 11.345, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 2524, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_created_id_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.42, "Total Cost": 9467.91, "Plan Rows": 79610, "Plan Width": 162, "Actual Startup Time": 0.008, "Actual Total Time": 8.54, "Actual Rows": 79950, "Actual Loops": 1, "Index Cond": "(chat_id = '00000000-0000-0000-0000-000000000001'::uuid)", "Rows Removed by Index Recheck": 0, "Shared Hit Blocks": 2524, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.092, "Triggers": [], "Execution Time": 11.357 } }, { "chat_size": 15000, "query": "keyset", "latency_ms": { "p50": 0.2069, "p95": 0.2373, "p99": 0.2455, "mean": 0.2108 }, "raw_latency_ms": [ 0.2373, 0.2455, 0.2286, 0.2179, 0.227, 0.2261, 0.202, 0.1996, 0.1972, 0.1978, 0.2108, 0.1955, 0.1995, 0.196, 0.1958, 0.2084, 0.1987, 0.193, 0.2089, 0.2119, 0.2058, 0.2095, 0.1917, 0.1995, 0.1935, 0.2069, 0.2285, 0.2295, 0.2328, 0.2282 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 4736.312, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.42, "Total Cost": 79.7, "Plan Rows": 50, "Plan Width": 162, "Actual Startup Time": 0.004, "Actual Total Time": 0.014, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_created_id_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.42, "Total Cost": 1218.15, "Plan Rows": 768, "Plan Width": 162, "Actual Startup Time": 0.004, "Actual Total Time": 0.01, "Actual Rows": 50, "Actual Loops": 1, "Index Cond": "((chat_id = '00000000-0000-0000-0000-000000000002'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0949+00'::timestamp with time zone, '83309d4e-6a9c-bf24-ec2c-d0ad8d47e31e'::uuid)))", "Rows Removed by Index Recheck": 0, "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.049, "Triggers": [], "Execution Time": 0.022 } }, { "chat_size": 15000, "query": "offset", "latency_ms": { "p50": 1.3274, "p95": 6.6483, "p99": 6.7603, "mean": 2.32 }, "raw_latency_ms": [ 5.0241, 4.5037, 4.6073, 4.7289, 6.3138, 6.6483, 6.7603, 1.871, 1.3498, 1.3344, 1.2695, 1.2741, 1.3163, 1.3274, 1.2907, 1.2879, 1.3007, 1.478, 1.2978, 1.2856, 1.3245, 1.2953, 1.3345, 1.3287, 1.2874, 1.2853, 1.298, 1.379, 1.3168, 1.4797 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 430.747, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 4412.7, "Total Cost": 4412.83, "Plan Rows": 50, "Plan Width": 162, "Actual Startup Time": 7.498, "Actual Total Time": 7.508, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 476, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 328, "Temp Written Blocks": 329, "Plans": [ { "Node Type": "Sort", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 4375.45, "Total Cost": 4414.49, "Plan Rows": 15617, "Plan Width": 162, "Actual Startup Time": 5.713, "Actual Total Time": 6.979, "Actual Rows": 14950, "Actual Loops": 1, "Sort Key": [ "created_at", "id" ], "Sort Method": "external merge", "Sort Space Used": 2624, "Sort Space Type": "Disk", "Shared Hit Blocks": 476, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 328, "Temp Written Blocks": 329, "Plans": [ { "Node Type": "Bitmap Heap Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Relation Name": "messages", "Alias": "messages", "Startup Cost": 653.45, "Total Cost": 3287.66, "Plan Rows": 15617, "Plan Width": 162, "Actual Startup Time": 0.546, "Actual Total Time": 1.806, "Actual Rows": 15000, "Actual Loops": 1, "Recheck Cond": "(chat_id = '00000000-0000-0000-0000-000000000002'::uuid)", "Rows Removed by Index Recheck": 0, "Exact Heap Blocks": 366, "Lossy Heap Blocks": 0, "Shared Hit Blocks": 476, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Bitmap Index Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Index Name": "messages_chat_created_id_idx", "Startup Cost": 0.0, "Total Cost": 649.54, "Plan Rows": 15617, "Plan Width": 0, "Actual Startup Time": 0.503, "Actual Total Time": 0.503, "Actual Rows": 15000, "Actual Loops": 1, "Index Cond": "(chat_id = '00000000-0000-0000-0000-000000000002'::uuid)", "Shared Hit Blocks": 110, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] } ] } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.071, "Triggers": [], "Execution Time": 7.708 } }, { "chat_size": 4000, "query": "keyset", "latency_ms": { "p50": 0.2088, "p95": 0.2822, "p99": 0.3122, "mean": 0.2174 }, "raw_latency_ms": [ 0.2822, 0.2479, 0.3122, 0.2194, 0.212, 0.2153, 0.2106, 0.2297, 0.2096, 0.2075, 0.2083, 0.2098, 0.2088, 0.206, 0.2078, 0.2039, 0.2222, 0.2058, 0.2023, 0.2045, 0.2015, 0.2246, 0.2021, 0.2044, 0.2014, 0.2063, 0.2127, 0.201, 0.2134, 0.2276 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 4590.519, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.42, "Total Cost": 79.8, "Plan Rows": 41, "Plan Width": 162, "Actual Startup Time": 0.006, "Actual Total Time": 0.014, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_created_id_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.42, "Total Cost": 79.8, "Plan Rows": 41, "Plan Width": 162, "Actual Startup Time": 0.005, "Actual Total Time": 0.01, "Actual Rows": 50, "Actual Loops": 1, "Index Cond": "((chat_id = '00000000-0000-0000-0000-000000000003'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0989+00'::timestamp with time zone, '3ca7f544-85f6-3d47-6ce5-72ab53f46142'::uuid)))", "Rows Removed by Index Recheck": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.081, "Triggers": [], "Execution Time": 0.021 } }, { "chat_size": 4000, "query": "offset", "latency_ms": { "p50": 0.5051, "p95": 0.657, "p99": 0.7066, "mean": 0.5265 }, "raw_latency_ms": [ 0.4957, 0.4786, 0.5126, 0.5663, 0.5825, 0.5162, 0.4861, 0.5071, 0.7066, 0.657, 0.5481, 0.5051, 0.489, 0.4827, 0.5018, 0.5004, 0.483, 0.4886, 0.4746, 0.4971, 0.4819, 0.6243, 0.559, 0.5098, 0.5098, 0.4855, 0.4931, 0.5078, 0.627, 0.5188 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 1897.228, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 2991.44, "Total Cost": 2991.44, "Plan Rows": 1, "Plan Width": 162, "Actual Startup Time": 1.111, "Actual Total Time": 1.117, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 131, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Sort", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 2982.0, "Total Cost": 2991.44, "Plan Rows": 3777, "Plan Width": 162, "Actual Startup Time": 0.79, "Actual Total Time": 0.976, "Actual Rows": 3950, "Actual Loops": 1, "Sort Key": [ "created_at", "id" ], "Sort Method": "quicksort", "Sort Space Used": 1128, "Sort Space Type": "Memory", "Shared Hit Blocks": 131, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Bitmap Heap Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Relation Name": "messages", "Alias": "messages", "Startup Cost": 161.69, "Total Cost": 2757.59, "Plan Rows": 3777, "Plan Width": 162, "Actual Startup Time": 0.152, "Actual Total Time": 0.46, "Actual Rows": 4000, "Actual Loops": 1, "Recheck Cond": "(chat_id = '00000000-0000-0000-0000-000000000003'::uuid)", "Rows Removed by Index Recheck": 0, "Exact Heap Blocks": 99, "Lossy Heap Blocks": 0, "Shared Hit Blocks": 131, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Bitmap Index Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Index Name": "messages_chat_created_id_idx", "Startup Cost": 0.0, "Total Cost": 160.74, "Plan Rows": 3777, "Plan Width": 0, "Actual Startup Time": 0.139, "Actual Total Time": 0.139, "Actual Rows": 4000, "Actual Loops": 1, "Index Cond": "(chat_id = '00000000-0000-0000-0000-000000000003'::uuid)", "Shared Hit Blocks": 32, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] } ] } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.068, "Triggers": [], "Execution Time": 1.129 } }, { "chat_size": 1000, "query": "keyset", "latency_ms": { "p50": 0.1998, "p95": 0.235, "p99": 0.2685, "mean": 0.205 }, "raw_latency_ms": [ 0.2064, 0.2084, 0.1998, 0.2078, 0.2144, 0.1987, 0.1991, 0.1996, 0.1965, 0.2004, 0.1998, 0.2007, 0.1957, 0.1992, 0.2052, 0.1958, 0.1978, 0.1942, 0.1949, 0.2148, 0.1981, 0.1933, 0.1977, 0.1944, 0.2685, 0.235, 0.2088, 0.2044, 0.2183, 0.203 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 4868.845, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.42, "Total Cost": 8.44, "Plan Rows": 1, "Plan Width": 162, "Actual Startup Time": 0.005, "Actual Total Time": 0.013, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_created_id_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.42, "Total Cost": 8.44, "Plan Rows": 1, "Plan Width": 162, "Actual Startup Time": 0.004, "Actual Total Time": 0.009, "Actual Rows": 50, "Actual Loops": 1, "Index Cond": "((chat_id = '00000000-0000-0000-0000-000000000004'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0999+00'::timestamp with time zone, '7fa13929-f6d0-fc18-76f9-46306abe42ca'::uuid)))", "Rows Removed by Index Recheck": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.061, "Triggers": [], "Execution Time": 0.019 } }, { "chat_size": 1000, "query": "offset", "latency_ms": { "p50": 0.2825, "p95": 0.517, "p99": 0.5368, "mean": 0.3155 }, "raw_latency_ms": [ 0.2628, 0.2779, 0.2633, 0.2621, 0.273, 0.2787, 0.2618, 0.2817, 0.2825, 0.2827, 0.2667, 0.2641, 0.2825, 0.2986, 0.3225, 0.5368, 0.3892, 0.4551, 0.3943, 0.517, 0.3484, 0.2773, 0.2941, 0.2827, 0.377, 0.2994, 0.303, 0.2738, 0.2835, 0.2713 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 3164.696, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 1370.91, "Total Cost": 1447.05, "Plan Rows": 50, "Plan Width": 162, "Actual Startup Time": 0.128, "Actual Total Time": 0.136, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 33, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_created_id_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.42, "Total Cost": 1518.62, "Plan Rows": 997, "Plan Width": 162, "Actual Startup Time": 0.005, "Actual Total Time": 0.101, "Actual Rows": 950, "Actual Loops": 1, "Index Cond": "(chat_id = '00000000-0000-0000-0000-000000000004'::uuid)", "Rows Removed by Index Recheck": 0, "Shared Hit Blocks": 33, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.062, "Triggers": [], "Execution Time": 0.145 } } ] }, { "name": "covering", "database": "lab2_research_e09aa1b4_covering", "seed_seconds": 1.1557, "table_bytes": 20021248, "indexes_bytes": 28950528, "write_runs": [ { "commit_wall_ms": 15.6168, "execution_ms": 13.013, "wal_bytes": 715344, "shared_dirtied_blocks": 74 }, { "commit_wall_ms": 44.015, "execution_ms": 42.11, "wal_bytes": 729608, "shared_dirtied_blocks": 77 }, { "commit_wall_ms": 14.7893, "execution_ms": 12.95, "wal_bytes": 719000, "shared_dirtied_blocks": 75 }, { "commit_wall_ms": 13.9626, "execution_ms": 12.09, "wal_bytes": 704008, "shared_dirtied_blocks": 70 }, { "commit_wall_ms": 13.266, "execution_ms": 11.369, "wal_bytes": 700848, "shared_dirtied_blocks": 69 }, { "commit_wall_ms": 64.6203, "execution_ms": 61.422, "wal_bytes": 700376, "shared_dirtied_blocks": 70 }, { "commit_wall_ms": 11.2113, "execution_ms": 9.845, "wal_bytes": 700848, "shared_dirtied_blocks": 69 }, { "commit_wall_ms": 11.6234, "execution_ms": 10.102, "wal_bytes": 707616, "shared_dirtied_blocks": 72 }, { "commit_wall_ms": 11.3013, "execution_ms": 9.977, "wal_bytes": 700744, "shared_dirtied_blocks": 69 }, { "commit_wall_ms": 60.1216, "execution_ms": 59.042, "wal_bytes": 707768, "shared_dirtied_blocks": 71 } ], "write_commit_ms": { "p50": 13.9626, "p95": 64.6203, "p99": 64.6203, "mean": 26.0528 }, "reads": [ { "chat_size": 80000, "query": "keyset", "latency_ms": { "p50": 0.1993, "p95": 0.3393, "p99": 0.404, "mean": 0.2336 }, "raw_latency_ms": [ 0.2973, 0.2685, 0.3393, 0.3388, 0.2843, 0.3033, 0.2897, 0.2492, 0.2006, 0.1993, 0.1923, 0.1936, 0.1787, 0.1749, 0.1877, 0.1749, 0.2028, 0.1818, 0.1763, 0.1728, 0.1942, 0.1722, 0.1774, 0.1911, 0.1755, 0.2407, 0.3043, 0.271, 0.2699, 0.404 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 4272.262, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.42, "Total Cost": 7.34, "Plan Rows": 50, "Plan Width": 162, "Actual Startup Time": 0.006, "Actual Total Time": 0.015, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Only Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_covering_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.42, "Total Cost": 2212.08, "Plan Rows": 15983, "Plan Width": 162, "Actual Startup Time": 0.006, "Actual Total Time": 0.011, "Actual Rows": 50, "Actual Loops": 1, "Index Cond": "((chat_id = '00000000-0000-0000-0000-000000000001'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0799+00'::timestamp with time zone, '4c258fbb-7ab4-ca0e-1a48-23111d989887'::uuid)))", "Rows Removed by Index Recheck": 0, "Heap Fetches": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.035, "Triggers": [], "Execution Time": 0.024 } }, { "chat_size": 80000, "query": "offset", "latency_ms": { "p50": 6.7655, "p95": 7.1888, "p99": 7.3155, "mean": 6.8453 }, "raw_latency_ms": [ 6.7905, 6.9868, 7.1641, 6.7145, 6.6758, 6.662, 6.7611, 6.7655, 6.5623, 6.5497, 6.7386, 7.0508, 7.3155, 6.9717, 6.9465, 7.09, 7.1888, 7.1567, 6.6796, 7.0895, 7.0182, 6.9527, 6.6477, 6.5414, 6.8389, 6.5921, 6.9738, 6.6531, 6.5765, 6.7053 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 146.073, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 10853.18, "Total Cost": 10859.97, "Plan Rows": 50, "Plan Width": 162, "Actual Startup Time": 11.598, "Actual Total Time": 11.608, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 2002, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Only Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_covering_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.42, "Total Cost": 10891.62, "Plan Rows": 80183, "Plan Width": 162, "Actual Startup Time": 0.005, "Actual Total Time": 8.823, "Actual Rows": 79950, "Actual Loops": 1, "Index Cond": "(chat_id = '00000000-0000-0000-0000-000000000001'::uuid)", "Rows Removed by Index Recheck": 0, "Heap Fetches": 0, "Shared Hit Blocks": 2002, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.04, "Triggers": [], "Execution Time": 11.616 } }, { "chat_size": 15000, "query": "keyset", "latency_ms": { "p50": 0.2027, "p95": 0.2262, "p99": 0.2397, "mean": 0.206 }, "raw_latency_ms": [ 0.2262, 0.2397, 0.205, 0.2123, 0.1969, 0.2053, 0.1981, 0.2071, 0.2027, 0.2019, 0.2212, 0.2054, 0.2026, 0.1926, 0.217, 0.204, 0.2045, 0.2001, 0.2007, 0.201, 0.2068, 0.2013, 0.2023, 0.2004, 0.1986, 0.2043, 0.203, 0.1992, 0.2018, 0.2174 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 4840.044, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.42, "Total Cost": 7.36, "Plan Rows": 50, "Plan Width": 162, "Actual Startup Time": 0.005, "Actual Total Time": 0.014, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Only Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_covering_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.42, "Total Cost": 103.22, "Plan Rows": 740, "Plan Width": 162, "Actual Startup Time": 0.005, "Actual Total Time": 0.01, "Actual Rows": 50, "Actual Loops": 1, "Index Cond": "((chat_id = '00000000-0000-0000-0000-000000000002'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0949+00'::timestamp with time zone, '83309d4e-6a9c-bf24-ec2c-d0ad8d47e31e'::uuid)))", "Rows Removed by Index Recheck": 0, "Heap Fetches": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.043, "Triggers": [], "Execution Time": 0.021 } }, { "chat_size": 15000, "query": "offset", "latency_ms": { "p50": 1.374, "p95": 1.5291, "p99": 1.5962, "mean": 1.3926 }, "raw_latency_ms": [ 1.4307, 1.4245, 1.5962, 1.4651, 1.3905, 1.4193, 1.5291, 1.3768, 1.3905, 1.4379, 1.374, 1.376, 1.3632, 1.3709, 1.4246, 1.3796, 1.3833, 1.3908, 1.3711, 1.3649, 1.3535, 1.3539, 1.3552, 1.349, 1.361, 1.3386, 1.3488, 1.3593, 1.3514, 1.3469 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 717.922, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 2024.08, "Total Cost": 2029.92, "Plan Rows": 43, "Plan Width": 162, "Actual Startup Time": 2.174, "Actual Total Time": 2.182, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 378, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Only Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_covering_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.42, "Total Cost": 2029.92, "Plan Rows": 14943, "Plan Width": 162, "Actual Startup Time": 0.004, "Actual Total Time": 1.656, "Actual Rows": 14950, "Actual Loops": 1, "Index Cond": "(chat_id = '00000000-0000-0000-0000-000000000002'::uuid)", "Rows Removed by Index Recheck": 0, "Heap Fetches": 0, "Shared Hit Blocks": 378, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.048, "Triggers": [], "Execution Time": 2.19 } }, { "chat_size": 4000, "query": "keyset", "latency_ms": { "p50": 0.1897, "p95": 0.2183, "p99": 0.2226, "mean": 0.1935 }, "raw_latency_ms": [ 0.2042, 0.1914, 0.1933, 0.1903, 0.1881, 0.2226, 0.1908, 0.1906, 0.193, 0.1909, 0.2183, 0.1887, 0.1887, 0.1891, 0.1897, 0.2016, 0.1895, 0.1887, 0.1882, 0.1892, 0.2019, 0.1897, 0.1883, 0.1885, 0.1879, 0.1982, 0.1983, 0.1892, 0.1875, 0.1883 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 5160.995, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.42, "Total Cost": 9.32, "Plan Rows": 45, "Plan Width": 162, "Actual Startup Time": 0.004, "Actual Total Time": 0.013, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Only Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_covering_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.42, "Total Cost": 9.32, "Plan Rows": 45, "Plan Width": 162, "Actual Startup Time": 0.004, "Actual Total Time": 0.009, "Actual Rows": 50, "Actual Loops": 1, "Index Cond": "((chat_id = '00000000-0000-0000-0000-000000000003'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0989+00'::timestamp with time zone, '3ca7f544-85f6-3d47-6ce5-72ab53f46142'::uuid)))", "Rows Removed by Index Recheck": 0, "Heap Fetches": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.026, "Triggers": [], "Execution Time": 0.019 } }, { "chat_size": 4000, "query": "offset", "latency_ms": { "p50": 0.508, "p95": 0.7336, "p99": 0.8249, "mean": 0.5293 }, "raw_latency_ms": [ 0.5041, 0.5104, 0.5184, 0.512, 0.5033, 0.5045, 0.5045, 0.5029, 0.511, 0.4992, 0.5117, 0.4985, 0.5143, 0.4954, 0.5082, 0.4949, 0.5114, 0.4978, 0.5138, 0.4957, 0.508, 0.4949, 0.5196, 0.497, 0.5098, 0.4977, 0.5486, 0.8249, 0.7336, 0.632 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 1888.336, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 514.62, "Total Cost": 514.76, "Plan Rows": 1, "Plan Width": 162, "Actual Startup Time": 0.605, "Actual Total Time": 0.614, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 103, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Only Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_covering_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.42, "Total Cost": 514.62, "Plan Rows": 3783, "Plan Width": 162, "Actual Startup Time": 0.005, "Actual Total Time": 0.474, "Actual Rows": 3950, "Actual Loops": 1, "Index Cond": "(chat_id = '00000000-0000-0000-0000-000000000003'::uuid)", "Rows Removed by Index Recheck": 0, "Heap Fetches": 0, "Shared Hit Blocks": 103, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.048, "Triggers": [], "Execution Time": 0.625 } }, { "chat_size": 1000, "query": "keyset", "latency_ms": { "p50": 0.1999, "p95": 0.2138, "p99": 0.2153, "mean": 0.2028 }, "raw_latency_ms": [ 0.2033, 0.2018, 0.2092, 0.2134, 0.1999, 0.2019, 0.1978, 0.1956, 0.212, 0.1998, 0.199, 0.1997, 0.202, 0.2108, 0.1981, 0.1999, 0.1938, 0.1989, 0.2117, 0.2138, 0.2048, 0.1965, 0.2067, 0.2068, 0.1985, 0.199, 0.1949, 0.1968, 0.2153, 0.2018 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 4925.03, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.42, "Total Cost": 4.44, "Plan Rows": 1, "Plan Width": 162, "Actual Startup Time": 0.004, "Actual Total Time": 0.014, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Only Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_covering_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.42, "Total Cost": 4.44, "Plan Rows": 1, "Plan Width": 162, "Actual Startup Time": 0.004, "Actual Total Time": 0.01, "Actual Rows": 50, "Actual Loops": 1, "Index Cond": "((chat_id = '00000000-0000-0000-0000-000000000004'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0999+00'::timestamp with time zone, '7fa13929-f6d0-fc18-76f9-46306abe42ca'::uuid)))", "Rows Removed by Index Recheck": 0, "Heap Fetches": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.052, "Triggers": [], "Execution Time": 0.02 } }, { "chat_size": 1000, "query": "offset", "latency_ms": { "p50": 0.2774, "p95": 0.3663, "p99": 0.4765, "mean": 0.2948 }, "raw_latency_ms": [ 0.2676, 0.2789, 0.2774, 0.2675, 0.2674, 0.3249, 0.3167, 0.3663, 0.4765, 0.3109, 0.3213, 0.3049, 0.2712, 0.269, 0.2758, 0.3097, 0.3083, 0.3037, 0.2809, 0.2744, 0.2719, 0.2951, 0.2722, 0.2711, 0.2714, 0.2699, 0.2692, 0.2675, 0.2922, 0.2889 ], "successful_queries": 30, "failed_queries": 0, "observed_sequential_qps": 3388.315, "explain": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 125.16, "Total Cost": 132.09, "Plan Rows": 50, "Plan Width": 162, "Actual Startup Time": 0.143, "Actual Total Time": 0.151, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 28, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Plans": [ { "Node Type": "Index Only Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "messages_chat_covering_idx", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.42, "Total Cost": 151.49, "Plan Rows": 1090, "Plan Width": 162, "Actual Startup Time": 0.003, "Actual Total Time": 0.116, "Actual Rows": 950, "Actual Loops": 1, "Index Cond": "(chat_id = '00000000-0000-0000-0000-000000000004'::uuid)", "Rows Removed by Index Recheck": 0, "Heap Fetches": 0, "Shared Hit Blocks": 28, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 } ] }, "Planning": { "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.039, "Triggers": [], "Execution Time": 0.157 } } ] } ], "databases": [ "lab2_research_e09aa1b4_chat_only", "lab2_research_e09aa1b4_keyset", "lab2_research_e09aa1b4_covering" ], "backup_source": "lab2_research_e09aa1b4_keyset", "before_backup": { "counts": { "users": 1, "chats": 4, "chat_members": 4, "messages": 100000, "sessions": 1, "schema_migrations": 1, "app_settings": 1 }, "all_messages_sha256": "dfdcdff4be5c439c47e7d26869631c0242760c92e0706d5977ccbad9d2d2ab7f", "selected_messages": [ [ "7bb1fec0-75f7-3359-0707-a34b46f176e9", "00000000-0000-0000-0000-000000000001", "11111111-1111-4111-8111-111111111111", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:1", "2026-01-01 00:00:00.000001+00:00" ], [ "7db39161-2ccb-46b3-0e44-acfd673d8fad", "00000000-0000-0000-0000-000000000001", "11111111-1111-4111-8111-111111111111", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:500", "2026-01-01 00:00:00.000500+00:00" ], [ "5c88fd17-f50a-b61f-355c-031cb79944a9", "00000000-0000-0000-0000-000000000001", "11111111-1111-4111-8111-111111111111", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:80000", "2026-01-01 00:00:00.080000+00:00" ], [ "666950e5-a708-152a-411b-ce0ad25ac71b", "00000000-0000-0000-0000-000000000002", "11111111-1111-4111-8111-111111111111", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:80001", "2026-01-01 00:00:00.080001+00:00" ], [ "15c2c27f-473a-ec26-9e9c-2716b128f3ea", "00000000-0000-0000-0000-000000000002", "11111111-1111-4111-8111-111111111111", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:95000", "2026-01-01 00:00:00.095000+00:00" ], [ "d1d9c2f9-e7cf-1922-c139-76c555b5bac8", "00000000-0000-0000-0000-000000000003", "11111111-1111-4111-8111-111111111111", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:99000", "2026-01-01 00:00:00.099000+00:00" ], [ "def7ad13-3c77-47ce-172f-39ecad05bab1", "00000000-0000-0000-0000-000000000004", "11111111-1111-4111-8111-111111111111", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:100000", "2026-01-01 00:00:00.100000+00:00" ] ] } }, "after_snapshot_write": { "source_messages_after_dump": 100001, "expected_messages_missing_from_snapshot": 1 }, "backup_restore": { "backup_seconds": 0.5288, "dump_bytes": 3004503, "dump_sha256": "f5ae26a1ed569f5027d5fafa26001a3429e90a18db1589e394d1a368aa990f46", "new_container_and_volume": true, "provision_seconds": 1.3216, "restore_seconds": 0.6135, "provision_plus_restore_seconds": 1.9351, "verification": { "counts": { "users": 1, "chats": 4, "chat_members": 4, "messages": 100000, "sessions": 1, "schema_migrations": 1, "app_settings": 1 }, "all_messages_sha256": "dfdcdff4be5c439c47e7d26869631c0242760c92e0706d5977ccbad9d2d2ab7f", "selected_messages": [ [ "7bb1fec0-75f7-3359-0707-a34b46f176e9", "00000000-0000-0000-0000-000000000001", "11111111-1111-4111-8111-111111111111", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:1", "2026-01-01 00:00:00.000001+00:00" ], [ "7db39161-2ccb-46b3-0e44-acfd673d8fad", "00000000-0000-0000-0000-000000000001", "11111111-1111-4111-8111-111111111111", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:500", "2026-01-01 00:00:00.000500+00:00" ], [ "5c88fd17-f50a-b61f-355c-031cb79944a9", "00000000-0000-0000-0000-000000000001", "11111111-1111-4111-8111-111111111111", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:80000", "2026-01-01 00:00:00.080000+00:00" ], [ "666950e5-a708-152a-411b-ce0ad25ac71b", "00000000-0000-0000-0000-000000000002", "11111111-1111-4111-8111-111111111111", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:80001", "2026-01-01 00:00:00.080001+00:00" ], [ "15c2c27f-473a-ec26-9e9c-2716b128f3ea", "00000000-0000-0000-0000-000000000002", "11111111-1111-4111-8111-111111111111", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:95000", "2026-01-01 00:00:00.095000+00:00" ], [ "d1d9c2f9-e7cf-1922-c139-76c555b5bac8", "00000000-0000-0000-0000-000000000003", "11111111-1111-4111-8111-111111111111", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:99000", "2026-01-01 00:00:00.099000+00:00" ], [ "def7ad13-3c77-47ce-172f-39ecad05bab1", "00000000-0000-0000-0000-000000000004", "11111111-1111-4111-8111-111111111111", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:100000", "2026-01-01 00:00:00.100000+00:00" ] ], "orphan_messages": 0 }, "all_counts_and_samples_equal": true, "all_messages_checksum_equal": true, "after_backup_canary_intentionally_absent": true }, "status": "PASS" }