{ "seed": "100000 messages, fixed seed/tag lab2_2026", "restore_target": "separate PostgreSQL 16.4 service with its own restore_data volume", "index_plans": [ { "index": "A chat,created_at,id", "total_runtime_ms": 0.04, "shared_read_blocks": 3, "shared_hit_blocks": 3, "index_size": "5776 kB", "plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.42, "Total Cost": 13.59, "Plan Rows": 50, "Plan Width": 178, "Actual Startup Time": 0.033, "Actual Total Time": 0.04, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 3, "Shared Read Blocks": 3, "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": "bench_messages_lab2_2026_a", "Relation Name": "bench_messages_lab2_2026", "Alias": "bench_messages_lab2_2026", "Startup Cost": 0.42, "Total Cost": 12636.91, "Plan Rows": 47969, "Plan Width": 178, "Actual Startup Time": 0.032, "Actual Total Time": 0.037, "Actual Rows": 50, "Actual Loops": 1, "Index Cond": "((chat_id = 'f316dbbe-85f1-4587-454d-bfe607cf01de'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:40+00'::timestamp with time zone, '1791a97a-8403-730e-e076-0489a2aeb992'::uuid)))", "Rows Removed by Index Recheck": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 3, "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 } ] } }, { "index": "B covering history index", "total_runtime_ms": 0.029, "shared_read_blocks": 4, "shared_hit_blocks": 4, "index_size": "7544 kB", "plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.42, "Total Cost": 14.03, "Plan Rows": 50, "Plan Width": 177, "Actual Startup Time": 0.018, "Actual Total Time": 0.029, "Actual Rows": 50, "Actual Loops": 1, "Shared Hit Blocks": 4, "Shared Read Blocks": 4, "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": "Backward", "Index Name": "bench_messages_lab2_2026_b", "Relation Name": "bench_messages_lab2_2026", "Alias": "bench_messages_lab2_2026", "Startup Cost": 0.42, "Total Cost": 13060.0, "Plan Rows": 47981, "Plan Width": 177, "Actual Startup Time": 0.017, "Actual Total Time": 0.027, "Actual Rows": 50, "Actual Loops": 1, "Index Cond": "((chat_id = 'f316dbbe-85f1-4587-454d-bfe607cf01de'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:40+00'::timestamp with time zone, '1791a97a-8403-730e-e076-0489a2aeb992'::uuid)))", "Rows Removed by Index Recheck": 0, "Shared Hit Blocks": 4, "Shared Read Blocks": 4, "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 } ] } } ], "write_cost": [ { "trial": 1, "index": "A", "rows": 10000, "execution_ms": 25.63, "plan": { "Node Type": "ModifyTable", "Operation": "Insert", "Parallel Aware": false, "Async Capable": false, "Relation Name": "bench_messages_lab2_2026_wa1", "Alias": "bench_messages_lab2_2026_wa1", "Startup Cost": 0.0, "Total Cost": 350.0, "Plan Rows": 0, "Plan Width": 0, "Actual Startup Time": 25.564, "Actual Total Time": 25.565, "Actual Rows": 0, "Actual Loops": 1, "Shared Hit Blocks": 41338, "Shared Read Blocks": 5, "Shared Dirtied Blocks": 249, "Shared Written Blocks": 246, "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": "g", "Startup Cost": 0.0, "Total Cost": 350.0, "Plan Rows": 10000, "Plan Width": 572, "Actual Startup Time": 0.505, "Actual Total Time": 10.841, "Actual Rows": 10000, "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 } ] } }, { "trial": 1, "index": "B", "rows": 10000, "execution_ms": 23.668, "plan": { "Node Type": "ModifyTable", "Operation": "Insert", "Parallel Aware": false, "Async Capable": false, "Relation Name": "bench_messages_lab2_2026_wb1", "Alias": "bench_messages_lab2_2026_wb1", "Startup Cost": 0.0, "Total Cost": 350.0, "Plan Rows": 0, "Plan Width": 0, "Actual Startup Time": 23.603, "Actual Total Time": 23.603, "Actual Rows": 0, "Actual Loops": 1, "Shared Hit Blocks": 41421, "Shared Read Blocks": 6, "Shared Dirtied Blocks": 291, "Shared Written Blocks": 286, "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": "g", "Startup Cost": 0.0, "Total Cost": 350.0, "Plan Rows": 10000, "Plan Width": 572, "Actual Startup Time": 0.913, "Actual Total Time": 10.025, "Actual Rows": 10000, "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 } ] } }, { "trial": 2, "index": "B", "rows": 10000, "execution_ms": 22.507, "plan": { "Node Type": "ModifyTable", "Operation": "Insert", "Parallel Aware": false, "Async Capable": false, "Relation Name": "bench_messages_lab2_2026_wb2", "Alias": "bench_messages_lab2_2026_wb2", "Startup Cost": 0.0, "Total Cost": 350.0, "Plan Rows": 0, "Plan Width": 0, "Actual Startup Time": 22.451, "Actual Total Time": 22.451, "Actual Rows": 0, "Actual Loops": 1, "Shared Hit Blocks": 41420, "Shared Read Blocks": 6, "Shared Dirtied Blocks": 291, "Shared Written Blocks": 286, "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": "g", "Startup Cost": 0.0, "Total Cost": 350.0, "Plan Rows": 10000, "Plan Width": 572, "Actual Startup Time": 0.302, "Actual Total Time": 9.352, "Actual Rows": 10000, "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 } ] } }, { "trial": 2, "index": "A", "rows": 10000, "execution_ms": 74.828, "plan": { "Node Type": "ModifyTable", "Operation": "Insert", "Parallel Aware": false, "Async Capable": false, "Relation Name": "bench_messages_lab2_2026_wa2", "Alias": "bench_messages_lab2_2026_wa2", "Startup Cost": 0.0, "Total Cost": 350.0, "Plan Rows": 0, "Plan Width": 0, "Actual Startup Time": 74.737, "Actual Total Time": 74.738, "Actual Rows": 0, "Actual Loops": 1, "Shared Hit Blocks": 41338, "Shared Read Blocks": 5, "Shared Dirtied Blocks": 249, "Shared Written Blocks": 246, "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": "g", "Startup Cost": 0.0, "Total Cost": 350.0, "Plan Rows": 10000, "Plan Width": 572, "Actual Startup Time": 0.32, "Actual Total Time": 16.837, "Actual Rows": 10000, "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 } ] } }, { "trial": 3, "index": "A", "rows": 10000, "execution_ms": 21.256, "plan": { "Node Type": "ModifyTable", "Operation": "Insert", "Parallel Aware": false, "Async Capable": false, "Relation Name": "bench_messages_lab2_2026_wa3", "Alias": "bench_messages_lab2_2026_wa3", "Startup Cost": 0.0, "Total Cost": 350.0, "Plan Rows": 0, "Plan Width": 0, "Actual Startup Time": 21.201, "Actual Total Time": 21.202, "Actual Rows": 0, "Actual Loops": 1, "Shared Hit Blocks": 41338, "Shared Read Blocks": 5, "Shared Dirtied Blocks": 249, "Shared Written Blocks": 246, "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": "g", "Startup Cost": 0.0, "Total Cost": 350.0, "Plan Rows": 10000, "Plan Width": 572, "Actual Startup Time": 0.34, "Actual Total Time": 9.433, "Actual Rows": 10000, "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 } ] } }, { "trial": 3, "index": "B", "rows": 10000, "execution_ms": 21.909, "plan": { "Node Type": "ModifyTable", "Operation": "Insert", "Parallel Aware": false, "Async Capable": false, "Relation Name": "bench_messages_lab2_2026_wb3", "Alias": "bench_messages_lab2_2026_wb3", "Startup Cost": 0.0, "Total Cost": 350.0, "Plan Rows": 0, "Plan Width": 0, "Actual Startup Time": 21.854, "Actual Total Time": 21.855, "Actual Rows": 0, "Actual Loops": 1, "Shared Hit Blocks": 41420, "Shared Read Blocks": 6, "Shared Dirtied Blocks": 291, "Shared Written Blocks": 286, "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": "g", "Startup Cost": 0.0, "Total Cost": 350.0, "Plan Rows": 10000, "Plan Width": 572, "Actual Startup Time": 0.295, "Actual Total Time": 9.481, "Actual Rows": 10000, "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 } ] } } ], "backup_bytes": 6882247, "backup_seconds": 0.556, "restore_seconds": 0.608, "row_counts": { "messenger": { "users": 53, "chats": 214, "chat_members": 227, "messages": 100015, "sessions": 42 }, "messenger_restore_check": { "users": 53, "chats": 214, "chat_members": 227, "messages": 100015, "sessions": 42 } }, "first_ten_rows_match": true }