{ "explain": [ { "Execution Time": 16.287, "Plan": { "Actual Loops": 1, "Actual Rows": 50, "Actual Startup Time": 16.235, "Actual Total Time": 16.245, "Async Capable": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, "Plan Width": 24, "Plans": [ { "Actual Loops": 1, "Actual Rows": 50, "Actual Startup Time": 16.234, "Actual Total Time": 16.238, "Async Capable": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "Sort", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 24, "Plans": [ { "Actual Loops": 1, "Actual Rows": 44448, "Actual Startup Time": 4.107, "Actual Total Time": 10.993, "Alias": "messages", "Async Capable": false, "Exact Heap Blocks": 847, "Filter": "(ROW(created_at, id) \u003e ROW('2026-10-29 17:48:54.814+00'::timestamp with time zone, 'c7a07079-b045-42ef-b516-b5f4d9f08aec'::uuid))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Lossy Heap Blocks": 0, "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 24, "Plans": [ { "Actual Loops": 1, "Actual Rows": 74449, "Actual Startup Time": 1.697, "Actual Total Time": 1.698, "Async Capable": false, "Index Cond": "(chat_id = '8f7acbf7-3f3a-4512-b7d3-1018a9c57a24'::uuid)", "Index Name": "messages_chat_only_idx", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 3, "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 66, "Shared Written Blocks": 0, "Startup Cost": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 4.32 } ], "Recheck Cond": "(chat_id = '8f7acbf7-3f3a-4512-b7d3-1018a9c57a24'::uuid)", "Relation Name": "messages", "Rows Removed by Filter": 30001, "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 847, "Shared Read Blocks": 66, "Shared Written Blocks": 0, "Startup Cost": 4.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 15.91 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 847, "Shared Read Blocks": 66, "Shared Written Blocks": 0, "Sort Key": [ "created_at", "id" ], "Sort Method": "top-N heapsort", "Sort Space Type": "Memory", "Sort Space Used": 28, "Startup Cost": 15.92, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 15.92 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 847, "Shared Read Blocks": 66, "Shared Written Blocks": 0, "Startup Cost": 15.92, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 15.92 }, "Planning": { "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 16, "Shared Read Blocks": 1, "Shared Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0 }, "Planning Time": 0.165, "Triggers": [] } ] }