[ { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 3795.18, "Total Cost": 3800.99, "Plan Rows": 51, "Plan Width": 71, "Actual Startup Time": 5.380, "Actual Total Time": 6.963, "Actual Rows": 51.00, "Actual Loops": 1, "Disabled": false, "Shared Hit Blocks": 1250, "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": 3795.18, "Total Cost": 6877.40, "Plan Rows": 27044, "Plan Width": 71, "Actual Startup Time": 5.378, "Actual Total Time": 6.959, "Actual Rows": 51.00, "Actual Loops": 1, "Disabled": false, "Workers Planned": 1, "Workers Launched": 1, "Shared Hit Blocks": 1250, "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": 2795.17, "Total Cost": 2834.94, "Plan Rows": 15908, "Plan Width": 71, "Actual Startup Time": 4.036, "Actual Total Time": 4.038, "Actual Rows": 51.00, "Actual Loops": 2, "Disabled": false, "Sort Key": ["created_at", "id"], "Sort Method": "top-N heapsort", "Sort Space Used": 31, "Sort Space Type": "Memory", "Shared Hit Blocks": 1250, "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": 31, "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.00, "Total Cost": 2264.44, "Plan Rows": 15908, "Plan Width": 71, "Actual Startup Time": 2.269, "Actual Total Time": 3.504, "Actual Rows": 10000.50, "Actual Loops": 2, "Disabled": false, "Filter": "((chat_id = 'd5f6496b-22d2-4d83-9840-843c175d2196'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.07+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", "Rows Removed by Filter": 40001, "Shared Hit Blocks": 1235, "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": 99, "Shared Read Blocks": 1, "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.246, "Triggers": [ ], "Execution Time": 7.009 } ]