{ "generated_at_utc": "2026-10-22T10:24:30.857161+00:00", "hypothesis": "Index (chat_id,created_at,id) bounds keyset page work independently of total chat history, at a measurable write/index-space cost.", "host": "Windows-11-10.0.26200-SP0", "limits": { "postgres_cpu": 1, "postgres_memory_mb": 512 }, "messages": 100000, "distribution": [ 80000, 15000, 625, 625, 625, 625, 625, 625, 625, 625 ], "warmup_reads": 2, "measured_repetitions": 5, "variants": { "chat_only": { "index_bytes": 720896, "pages": { "0": { "execution_ms": [ 10.364, 10.573, 11.867, 10.955, 10.857 ], "median_ms": 10.857, "representative_plan": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 6139.88, "Total Cost": 6145.83, "Plan Rows": 51, "Plan Width": 227, "Actual Startup Time": 9.259, "Actual Total Time": 11.759, "Actual Rows": 51, "Actual Loops": 1, "Shared Hit Blocks": 3224, "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": "Gather Merge", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 6139.88, "Total Cost": 13921.39, "Plan Rows": 66694, "Plan Width": 227, "Actual Startup Time": 9.258, "Actual Total Time": 11.745, "Actual Rows": 51, "Actual Loops": 1, "Workers Planned": 2, "Workers Launched": 2, "Shared Hit Blocks": 3224, "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": 5139.86, "Total Cost": 5223.23, "Plan Rows": 33347, "Plan Width": 227, "Actual Startup Time": 6.124, "Actual Total Time": 6.129, "Actual Rows": 51, "Actual Loops": 3, "Sort Key": [ "created_at", "id" ], "Sort Method": "top-N heapsort", "Sort Space Used": 50, "Sort Space Type": "Memory", "Shared Hit Blocks": 3224, "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, "Workers": [ { "Worker Number": 0, "Sort Method": "top-N heapsort", "Sort Space Used": 50, "Sort Space Type": "Memory" }, { "Worker Number": 1, "Sort Method": "top-N heapsort", "Sort Space Used": 50, "Sort Space Type": "Memory" } ], "Plans": [ { "Node Type": "Seq Scan", "Parent Relationship": "Outer", "Parallel Aware": true, "Async Capable": false, "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.0, "Total Cost": 4027.33, "Plan Rows": 33347, "Plan Width": 227, "Actual Startup Time": 0.008, "Actual Total Time": 4.187, "Actual Rows": 26667, "Actual Loops": 3, "Filter": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), 'ffffffff-ffff-ffff-ffff-ffffffffffff'::uuid)))", "Rows Removed by Filter": 6667, "Shared Hit Blocks": 3194, "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, "Workers": [] } ] } ] } ] }, "Planning": { "Shared Hit Blocks": 95, "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.579, "Triggers": [], "Execution Time": 11.867 } }, "40000": { "execution_ms": [ 8.986, 8.554, 8.792, 9.158, 9.034 ], "median_ms": 8.986, "representative_plan": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 5471.34, "Total Cost": 5477.29, "Plan Rows": 51, "Plan Width": 227, "Actual Startup Time": 6.912, "Actual Total Time": 8.695, "Actual Rows": 51, "Actual Loops": 1, "Shared Hit Blocks": 3224, "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": "Gather Merge", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 5471.34, "Total Cost": 8576.76, "Plan Rows": 26616, "Plan Width": 227, "Actual Startup Time": 6.911, "Actual Total Time": 8.69, "Actual Rows": 51, "Actual Loops": 1, "Workers Planned": 2, "Workers Launched": 2, "Shared Hit Blocks": 3224, "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": 4471.32, "Total Cost": 4504.59, "Plan Rows": 13308, "Plan Width": 227, "Actual Startup Time": 4.566, "Actual Total Time": 4.568, "Actual Rows": 37, "Actual Loops": 3, "Sort Key": [ "created_at", "id" ], "Sort Method": "top-N heapsort", "Sort Space Used": 50, "Sort Space Type": "Memory", "Shared Hit Blocks": 3224, "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, "Workers": [ { "Worker Number": 0, "Sort Method": "top-N heapsort", "Sort Space Used": 50, "Sort Space Type": "Memory" }, { "Worker Number": 1, "Sort Method": "top-N heapsort", "Sort Space Used": 50, "Sort Space Type": "Memory" } ], "Plans": [ { "Node Type": "Seq Scan", "Parent Relationship": "Outer", "Parallel Aware": true, "Async Capable": false, "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.0, "Total Cost": 4027.33, "Plan Rows": 13308, "Plan Width": 227, "Actual Startup Time": 1.456, "Actual Total Time": 3.588, "Actual Rows": 13333, "Actual Loops": 3, "Filter": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '11:06:40'::interval), 'ffffffff-ffff-ffff-ffff-ffffffffffff'::uuid)))", "Rows Removed by Filter": 20000, "Shared Hit Blocks": 3194, "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, "Workers": [] } ] } ] } ] }, "Planning": { "Shared Hit Blocks": 95, "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.548, "Triggers": [], "Execution Time": 8.792 } }, "79000": { "execution_ms": [ 8.468, 7.935, 8.093, 8.911, 7.61 ], "median_ms": 8.093, "representative_plan": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 5038.9, "Total Cost": 5044.85, "Plan Rows": 51, "Plan Width": 227, "Actual Startup Time": 5.863, "Actual Total Time": 8.001, "Actual Rows": 51, "Actual Loops": 1, "Shared Hit Blocks": 3224, "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": "Gather Merge", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 5038.9, "Total Cost": 5119.64, "Plan Rows": 692, "Plan Width": 227, "Actual Startup Time": 5.862, "Actual Total Time": 7.984, "Actual Rows": 51, "Actual Loops": 1, "Workers Planned": 2, "Workers Launched": 2, "Shared Hit Blocks": 3224, "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": 4038.88, "Total Cost": 4039.74, "Plan Rows": 346, "Plan Width": 227, "Actual Startup Time": 3.495, "Actual Total Time": 3.497, "Actual Rows": 50, "Actual Loops": 3, "Sort Key": [ "created_at", "id" ], "Sort Method": "top-N heapsort", "Sort Space Used": 50, "Sort Space Type": "Memory", "Shared Hit Blocks": 3224, "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, "Workers": [ { "Worker Number": 0, "Sort Method": "top-N heapsort", "Sort Space Used": 50, "Sort Space Type": "Memory" }, { "Worker Number": 1, "Sort Method": "top-N heapsort", "Sort Space Used": 50, "Sort Space Type": "Memory" } ], "Plans": [ { "Node Type": "Seq Scan", "Parent Relationship": "Outer", "Parallel Aware": true, "Async Capable": false, "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.0, "Total Cost": 4027.33, "Plan Rows": 346, "Plan Width": 227, "Actual Startup Time": 2.97, "Actual Total Time": 3.399, "Actual Rows": 333, "Actual Loops": 3, "Filter": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '21:56:40'::interval), 'ffffffff-ffff-ffff-ffff-ffffffffffff'::uuid)))", "Rows Removed by Filter": 33000, "Shared Hit Blocks": 3194, "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, "Workers": [] } ] } ] } ] }, "Planning": { "Shared Hit Blocks": 95, "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.49, "Triggers": [], "Execution Time": 8.093 } } }, "write_2000": { "execution_ms": [ 58.665, 65.9, 61.239, 61.952, 60.61 ], "median_ms": 61.239, "representative_plan": { "Plan": { "Node Type": "ModifyTable", "Operation": "Insert", "Parallel Aware": false, "Async Capable": false, "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.0, "Total Cost": 65.0, "Plan Rows": 0, "Plan Width": 0, "Actual Startup Time": 12.184, "Actual Total Time": 12.185, "Actual Rows": 0, "Actual Loops": 1, "Shared Hit Blocks": 12224, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 84, "Shared Written Blocks": 84, "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": "Function Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Function Name": "generate_series", "Alias": "n", "Startup Cost": 0.0, "Total Cost": 65.0, "Plan Rows": 2000, "Plan Width": 88, "Actual Startup Time": 0.308, "Actual Total Time": 3.175, "Actual Rows": 2000, "Actual Loops": 1, "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": { "Shared Hit Blocks": 21, "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.186, "Triggers": [ { "Trigger Name": "RI_ConstraintTrigger_c_24720", "Constraint Name": "messages_chat_id_fkey", "Relation": "messages", "Time": 24.438, "Calls": 2000 }, { "Trigger Name": "RI_ConstraintTrigger_c_24725", "Constraint Name": "messages_chat_id_sender_id_fkey", "Relation": "messages", "Time": 24.317, "Calls": 2000 } ], "Execution Time": 61.239 } } }, "keyset": { "index_bytes": 5914624, "pages": { "0": { "execution_ms": [ 0.091, 0.081, 0.085, 0.119, 0.088 ], "median_ms": 0.088, "representative_plan": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.42, "Total Cost": 9.19, "Plan Rows": 51, "Plan Width": 227, "Actual Startup Time": 0.015, "Actual Total Time": 0.029, "Actual Rows": 51, "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_history", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.42, "Total Cost": 13740.4, "Plan Rows": 79875, "Plan Width": 227, "Actual Startup Time": 0.014, "Actual Total Time": 0.025, "Actual Rows": 51, "Actual Loops": 1, "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), 'ffffffff-ffff-ffff-ffff-ffffffffffff'::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": 106, "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.535, "Triggers": [], "Execution Time": 0.085 } }, "40000": { "execution_ms": [ 0.097, 0.094, 0.094, 0.103, 0.098 ], "median_ms": 0.097, "representative_plan": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.42, "Total Cost": 17.55, "Plan Rows": 51, "Plan Width": 227, "Actual Startup Time": 0.023, "Actual Total Time": 0.038, "Actual Rows": 51, "Actual Loops": 1, "Shared Hit Blocks": 7, "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_history", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.42, "Total Cost": 10735.69, "Plan Rows": 31966, "Plan Width": 227, "Actual Startup Time": 0.023, "Actual Total Time": 0.035, "Actual Rows": 51, "Actual Loops": 1, "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '11:06:40'::interval), 'ffffffff-ffff-ffff-ffff-ffffffffffff'::uuid)))", "Rows Removed by Index Recheck": 0, "Shared Hit Blocks": 7, "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": 106, "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.501, "Triggers": [], "Execution Time": 0.094 } }, "79000": { "execution_ms": [ 0.091, 0.092, 0.086, 0.102, 0.087 ], "median_ms": 0.091, "representative_plan": { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.42, "Total Cost": 115.08, "Plan Rows": 51, "Plan Width": 227, "Actual Startup Time": 0.023, "Actual Total Time": 0.033, "Actual Rows": 51, "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_history", "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.42, "Total Cost": 1976.68, "Plan Rows": 879, "Plan Width": 227, "Actual Startup Time": 0.022, "Actual Total Time": 0.029, "Actual Rows": 51, "Actual Loops": 1, "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '21:56:40'::interval), 'ffffffff-ffff-ffff-ffff-ffffffffffff'::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": 106, "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.522, "Triggers": [], "Execution Time": 0.086 } } }, "write_2000": { "execution_ms": [ 66.689, 67.817, 61.934, 64.02, 71.374 ], "median_ms": 66.689, "representative_plan": { "Plan": { "Node Type": "ModifyTable", "Operation": "Insert", "Parallel Aware": false, "Async Capable": false, "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.0, "Total Cost": 65.0, "Plan Rows": 0, "Plan Width": 0, "Actual Startup Time": 13.263, "Actual Total Time": 13.263, "Actual Rows": 0, "Actual Loops": 1, "Shared Hit Blocks": 14270, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 102, "Shared Written Blocks": 102, "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": "Function Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Function Name": "generate_series", "Alias": "n", "Startup Cost": 0.0, "Total Cost": 65.0, "Plan Rows": 2000, "Plan Width": 88, "Actual Startup Time": 0.358, "Actual Total Time": 3.008, "Actual Rows": 2000, "Actual Loops": 1, "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": { "Shared Hit Blocks": 21, "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.17, "Triggers": [ { "Trigger Name": "RI_ConstraintTrigger_c_24720", "Constraint Name": "messages_chat_id_fkey", "Relation": "messages", "Time": 23.991, "Calls": 2000 }, { "Trigger Name": "RI_ConstraintTrigger_c_24725", "Constraint Name": "messages_chat_id_sender_id_fkey", "Relation": "messages", "Time": 24.41, "Calls": 2000 } ], "Execution Time": 61.934 } } } }, "postgres_version": "PostgreSQL 17.6 on x86_64-pc-linux-musl, compiled by gcc (Alpine 14.2.0) 14.2.0, 64-bit", "backup_restore": { "backup_bytes": 2882987, "backup_seconds": 0.574, "restore_seconds": 0.779, "source": { "users": 1, "chats": 10, "members": 10, "messages": 100000, "content_digest": "be1222f55df222fef96c1d71910ec87b", "selected": [ { "id": "0000882b-fe35-c255-54a7-1cd1579d9006", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T18:14:34+00:00" }, { "id": "0002cfad-a6bc-ef0f-c84d-4e3988f17764", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T02:26:02+00:00" }, { "id": "00030608-be2c-f10c-2a5b-4cbd0d4c3a85", "chat_id": "8f75de3d-47bf-55ab-9411-7165997387e6", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T01:24:23+00:00" }, { "id": "0003781e-a0d4-f9dd-89a4-575d8b1bbf96", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T08:24:03+00:00" }, { "id": "00042c63-b5a0-9a2a-091e-45dc4ccceca6", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T09:42:31+00:00" }, { "id": "00043264-f2db-3704-4f99-9077c288fb38", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T15:40:34+00:00" }, { "id": "0004722b-bb4a-57ad-8008-a171cdb39ea4", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T19:48:18+00:00" }, { "id": "0004b9f5-173e-4e3d-0164-420727828f54", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T12:35:59+00:00" }, { "id": "0004e195-adcb-7438-1b13-78cc7c25275e", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T14:15:32+00:00" }, { "id": "0004f30a-b6a3-be35-aaf7-6f145ae3fb54", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T05:45:26+00:00" } ] }, "restored": { "users": 1, "chats": 10, "members": 10, "messages": 100000, "content_digest": "be1222f55df222fef96c1d71910ec87b", "selected": [ { "id": "0000882b-fe35-c255-54a7-1cd1579d9006", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T18:14:34+00:00" }, { "id": "0002cfad-a6bc-ef0f-c84d-4e3988f17764", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T02:26:02+00:00" }, { "id": "00030608-be2c-f10c-2a5b-4cbd0d4c3a85", "chat_id": "8f75de3d-47bf-55ab-9411-7165997387e6", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T01:24:23+00:00" }, { "id": "0003781e-a0d4-f9dd-89a4-575d8b1bbf96", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T08:24:03+00:00" }, { "id": "00042c63-b5a0-9a2a-091e-45dc4ccceca6", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T09:42:31+00:00" }, { "id": "00043264-f2db-3704-4f99-9077c288fb38", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T15:40:34+00:00" }, { "id": "0004722b-bb4a-57ad-8008-a171cdb39ea4", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T19:48:18+00:00" }, { "id": "0004b9f5-173e-4e3d-0164-420727828f54", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T12:35:59+00:00" }, { "id": "0004e195-adcb-7438-1b13-78cc7c25275e", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T14:15:32+00:00" }, { "id": "0004f30a-b6a3-be35-aaf7-6f145ae3fb54", "chat_id": "22222222-2222-4222-8222-222222222222", "sender_id": "11111111-1111-4111-8111-111111111111", "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "created_at": "2026-01-01T05:45:26+00:00" } ] }, "equal": true, "scope": "empty database on separate PostgreSQL container and separate named volume; all counts, ordered digest of every message, and 10 complete messages match" }, "limitations": [ "Warm buffer cache, 5 sequential trials, local single-host containers; no claim of max production throughput.", "Write timing is EXPLAIN ANALYZE of 2000 inserts followed by rollback; includes constraints/triggers and excludes durable COMMIT latency. Aborted inserts can leave dead tuples.", "Logical backup captures the dump snapshot. Writes committed after that snapshot are not included; no WAL archiving/PITR. Restore time excludes operator detection and provisioning.", "Research fixtures use SQL bulk insert; HTTP validation/authentication cost is measured separately by the public load tool." ] }