[ { "index": "chat_only", "chat_size": 80000, "query": "keyset", "explain_analyze_buffers": { "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 } }, { "index": "chat_only", "chat_size": 80000, "query": "offset", "explain_analyze_buffers": { "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 } }, { "index": "chat_only", "chat_size": 15000, "query": "keyset", "explain_analyze_buffers": { "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 } }, { "index": "chat_only", "chat_size": 15000, "query": "offset", "explain_analyze_buffers": { "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 } }, { "index": "chat_only", "chat_size": 4000, "query": "keyset", "explain_analyze_buffers": { "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 } }, { "index": "chat_only", "chat_size": 4000, "query": "offset", "explain_analyze_buffers": { "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 } }, { "index": "chat_only", "chat_size": 1000, "query": "keyset", "explain_analyze_buffers": { "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 } }, { "index": "chat_only", "chat_size": 1000, "query": "offset", "explain_analyze_buffers": { "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 } }, { "index": "keyset", "chat_size": 80000, "query": "keyset", "explain_analyze_buffers": { "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 } }, { "index": "keyset", "chat_size": 80000, "query": "offset", "explain_analyze_buffers": { "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 } }, { "index": "keyset", "chat_size": 15000, "query": "keyset", "explain_analyze_buffers": { "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 } }, { "index": "keyset", "chat_size": 15000, "query": "offset", "explain_analyze_buffers": { "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 } }, { "index": "keyset", "chat_size": 4000, "query": "keyset", "explain_analyze_buffers": { "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 } }, { "index": "keyset", "chat_size": 4000, "query": "offset", "explain_analyze_buffers": { "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 } }, { "index": "keyset", "chat_size": 1000, "query": "keyset", "explain_analyze_buffers": { "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 } }, { "index": "keyset", "chat_size": 1000, "query": "offset", "explain_analyze_buffers": { "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 } }, { "index": "covering", "chat_size": 80000, "query": "keyset", "explain_analyze_buffers": { "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 } }, { "index": "covering", "chat_size": 80000, "query": "offset", "explain_analyze_buffers": { "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 } }, { "index": "covering", "chat_size": 15000, "query": "keyset", "explain_analyze_buffers": { "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 } }, { "index": "covering", "chat_size": 15000, "query": "offset", "explain_analyze_buffers": { "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 } }, { "index": "covering", "chat_size": 4000, "query": "keyset", "explain_analyze_buffers": { "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 } }, { "index": "covering", "chat_size": 4000, "query": "offset", "explain_analyze_buffers": { "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 } }, { "index": "covering", "chat_size": 1000, "query": "keyset", "explain_analyze_buffers": { "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 } }, { "index": "covering", "chat_size": 1000, "query": "offset", "explain_analyze_buffers": { "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 } } ]