[ { "Plan": { "Node Type": "Limit", "Parallel Aware": false, "Startup Cost": 116449.83, "Total Cost": 116449.83, "Plan Rows": 1, "Plan Width": 637, "Actual Startup Time": 14389.257, "Actual Total Time": 14389.263, "Actual Rows": 18, "Actual Loops": 1, "Shared Hit Blocks": 28163480, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 11, "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, "Startup Cost": 116449.83, "Total Cost": 116449.83, "Plan Rows": 1, "Plan Width": 637, "Actual Startup Time": 14389.256, "Actual Total Time": 14389.262, "Actual Rows": 18, "Actual Loops": 1, "Sort Key": ["message.\"time\" DESC"], "Sort Method": "quicksort", "Sort Space Used": 43, "Sort Space Type": "Memory", "Shared Hit Blocks": 28163480, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 11, "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": "Nested Loop", "Parent Relationship": "Outer", "Parallel Aware": false, "Join Type": "Left", "Startup Cost": 102385.49, "Total Cost": 116449.82, "Plan Rows": 1, "Plan Width": 637, "Actual Startup Time": 800.754, "Actual Total Time": 14389.214, "Actual Rows": 18, "Actual Loops": 1, "Join Filter": "(notification2.id = (SubPlan 2))", "Rows Removed by Join Filter": 576, "Shared Hit Blocks": 28163480, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 11, "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": "Nested Loop", "Parent Relationship": "Outer", "Parallel Aware": false, "Join Type": "Inner", "Startup Cost": 102381.13, "Total Cost": 116267.68, "Plan Rows": 1, "Plan Width": 629, "Actual Startup Time": 800.695, "Actual Total Time": 14388.192, "Actual Rows": 18, "Actual Loops": 1, "Join Filter": "((SubPlan 1) = notification.id)", "Rows Removed by Join Filter": 45934, "Shared Hit Blocks": 28161986, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 11, "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": "Nested Loop", "Parent Relationship": "Outer", "Parallel Aware": false, "Join Type": "Left", "Startup Cost": 102376.77, "Total Cost": 115909.60, "Plan Rows": 1, "Plan Width": 628, "Actual Startup Time": 755.072, "Actual Total Time": 14098.520, "Actual Rows": 1436, "Actual Loops": 1, "Join Filter": "(location.id = spool.location)", "Rows Removed by Join Filter": 1717448, "Shared Hit Blocks": 27748334, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 9, "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": "Merge Join", "Parent Relationship": "Outer", "Parallel Aware": false, "Join Type": "Inner", "Startup Cost": 102376.77, "Total Cost": 115864.69, "Plan Rows": 1, "Plan Width": 612, "Actual Startup Time": 754.837, "Actual Total Time": 13834.219, "Actual Rows": 1436, "Actual Loops": 1, "Merge Cond": "(thread.spool = handle.id)", "Join Filter": "((SubPlan 3) = message.\"time\")", "Rows Removed by Join Filter": 16989, "Shared Hit Blocks": 27722486, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 9, "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": "Nested Loop", "Parent Relationship": "Outer", "Parallel Aware": false, "Join Type": "Inner", "Startup Cost": 0.57, "Total Cost": 11857.59, "Plan Rows": 18423, "Plan Width": 531, "Actual Startup Time": 0.013, "Actual Total Time": 45.579, "Actual Rows": 18425, "Actual Loops": 1, "Shared Hit Blocks": 66551, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 2, "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, "Scan Direction": "Forward", "Index Name": "thread_spool_idx", "Relation Name": "thread", "Alias": "thread", "Startup Cost": 0.29, "Total Cost": 1139.33, "Plan Rows": 16477, "Plan Width": 40, "Actual Startup Time": 0.007, "Actual Total Time": 9.402, "Actual Rows": 16479, "Actual Loops": 1, "Shared Hit Blocks": 16279, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 1, "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 }, { "Node Type": "Index Scan", "Parent Relationship": "Inner", "Parallel Aware": false, "Scan Direction": "Forward", "Index Name": "message_thread_idx", "Relation Name": "message", "Alias": "message", "Startup Cost": 0.29, "Total Cost": 0.64, "Plan Rows": 1, "Plan Width": 507, "Actual Startup Time": 0.002, "Actual Total Time": 0.002, "Actual Rows": 1, "Actual Loops": 16479, "Index Cond": "(thread = thread.id)", "Rows Removed by Index Recheck": 0, "Shared Hit Blocks": 50272, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 1, "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 } ] }, { "Node Type": "Sort", "Parent Relationship": "Inner", "Parallel Aware": false, "Startup Cost": 102375.79, "Total Cost": 102416.44, "Plan Rows": 16261, "Plan Width": 113, "Actual Startup Time": 754.288, "Actual Total Time": 758.818, "Actual Rows": 18425, "Actual Loops": 1, "Sort Key": ["spool.id"], "Sort Method": "quicksort", "Sort Space Used": 3229, "Sort Space Type": "Memory", "Shared Hit Blocks": 41173, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 3, "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": "Hash Join", "Parent Relationship": "Outer", "Parallel Aware": false, "Join Type": "Inner", "Startup Cost": 576.87, "Total Cost": 101238.40, "Plan Rows": 16261, "Plan Width": 113, "Actual Startup Time": 4.771, "Actual Total Time": 748.355, "Actual Rows": 16263, "Actual Loops": 1, "Hash Cond": "(handle.id = spool.id)", "Shared Hit Blocks": 41173, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 3, "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": "Seq Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Relation Name": "handle", "Alias": "handle", "Startup Cost": 0.00, "Total Cost": 84261.58, "Plan Rows": 4329958, "Plan Width": 25, "Actual Startup Time": 0.004, "Actual Total Time": 260.626, "Actual Rows": 4324163, "Actual Loops": 1, "Shared Hit Blocks": 40962, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 1, "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 }, { "Node Type": "Hash", "Parent Relationship": "Inner", "Parallel Aware": false, "Startup Cost": 373.61, "Total Cost": 373.61, "Plan Rows": 16261, "Plan Width": 88, "Actual Startup Time": 4.743, "Actual Total Time": 4.744, "Actual Rows": 16263, "Actual Loops": 1, "Hash Buckets": 16384, "Original Hash Buckets": 16384, "Hash Batches": 1, "Original Hash Batches": 1, "Peak Memory Usage": 1791, "Shared Hit Blocks": 211, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 2, "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": "Seq Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Relation Name": "spool", "Alias": "spool", "Startup Cost": 0.00, "Total Cost": 373.61, "Plan Rows": 16261, "Plan Width": 88, "Actual Startup Time": 0.002, "Actual Total Time": 2.248, "Actual Rows": 16263, "Actual Loops": 1, "Shared Hit Blocks": 211, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 2, "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 } ] } ] } ] }, { "Node Type": "Limit", "Parent Relationship": "SubPlan", "Subplan Name": "SubPlan 3", "Parallel Aware": false, "Startup Cost": 21.78, "Total Cost": 21.79, "Plan Rows": 1, "Plan Width": 8, "Actual Startup Time": 0.706, "Actual Total Time": 0.707, "Actual Rows": 1, "Actual Loops": 18425, "Shared Hit Blocks": 27614762, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 4, "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": "Aggregate", "Strategy": "Plain", "Partial Mode": "Simple", "Parent Relationship": "Outer", "Parallel Aware": false, "Startup Cost": 21.78, "Total Cost": 21.79, "Plan Rows": 1, "Plan Width": 8, "Actual Startup Time": 0.706, "Actual Total Time": 0.706, "Actual Rows": 1, "Actual Loops": 18425, "Shared Hit Blocks": 27614762, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 4, "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": "Nested Loop", "Parent Relationship": "Outer", "Parallel Aware": false, "Join Type": "Left", "Startup Cost": 1.84, "Total Cost": 21.77, "Plan Rows": 4, "Plan Width": 8, "Actual Startup Time": 0.053, "Actual Total Time": 0.696, "Actual Rows": 108, "Actual Loops": 18425, "Filter": "((identity.id = 'b16690e4-a3c5-4868-945e-c2458c27a525'::uuid) OR (relation.\"to\" IS NOT NULL))", "Rows Removed by Filter": 94, "Shared Hit Blocks": 27614762, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 4, "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": "Nested Loop", "Parent Relationship": "Outer", "Parallel Aware": false, "Join Type": "Inner", "Startup Cost": 1.42, "Total Cost": 19.97, "Plan Rows": 4, "Plan Width": 24, "Actual Startup Time": 0.006, "Actual Total Time": 0.369, "Actual Rows": 202, "Actual Loops": 18425, "Shared Hit Blocks": 12815450, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 1, "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": "Nested Loop", "Parent Relationship": "Outer", "Parallel Aware": false, "Join Type": "Inner", "Startup Cost": 0.99, "Total Cost": 14.46, "Plan Rows": 4, "Plan Width": 24, "Actual Startup Time": 0.005, "Actual Total Time": 0.095, "Actual Rows": 202, "Actual Loops": 18425, "Join Filter": "(thread2_2.id = message2.thread)", "Rows Removed by Join Filter": 0, "Shared Hit Blocks": 1660379, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 1, "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": "Nested Loop", "Parent Relationship": "Outer", "Parallel Aware": false, "Join Type": "Inner", "Startup Cost": 0.70, "Total Cost": 12.86, "Plan Rows": 4, "Plan Width": 48, "Actual Startup Time": 0.003, "Actual Total Time": 0.006, "Actual Rows": 6, "Actual Loops": 18425, "Shared Hit Blocks": 144918, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 1, "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, "Scan Direction": "Forward", "Index Name": "thread_spool_idx", "Relation Name": "thread", "Alias": "thread2_2", "Startup Cost": 0.29, "Total Cost": 8.30, "Plan Rows": 1, "Plan Width": 16, "Actual Startup Time": 0.001, "Actual Total Time": 0.001, "Actual Rows": 2, "Actual Loops": 18425, "Index Cond": "(spool = spool.id)", "Rows Removed by Index Recheck": 0, "Shared Hit Blocks": 59605, "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 }, { "Node Type": "Index Only Scan", "Parent Relationship": "Inner", "Parallel Aware": false, "Scan Direction": "Forward", "Index Name": "unique_participant", "Relation Name": "participant", "Alias": "participant", "Startup Cost": 0.42, "Total Cost": 4.50, "Plan Rows": 5, "Plan Width": 32, "Actual Startup Time": 0.002, "Actual Total Time": 0.002, "Actual Rows": 4, "Actual Loops": 28160, "Index Cond": "(thread = thread2_2.id)", "Rows Removed by Index Recheck": 0, "Heap Fetches": 199, "Shared Hit Blocks": 85313, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 1, "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 } ] }, { "Node Type": "Index Scan", "Parent Relationship": "Inner", "Parallel Aware": false, "Scan Direction": "Forward", "Index Name": "message_thread_idx", "Relation Name": "message", "Alias": "message2", "Startup Cost": 0.29, "Total Cost": 0.39, "Plan Rows": 1, "Plan Width": 24, "Actual Startup Time": 0.001, "Actual Total Time": 0.010, "Actual Rows": 33, "Actual Loops": 114267, "Index Cond": "(thread = participant.thread)", "Rows Removed by Index Recheck": 0, "Filter": "(NOT draft)", "Rows Removed by Filter": 0, "Shared Hit Blocks": 1515461, "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 } ] }, { "Node Type": "Index Only Scan", "Parent Relationship": "Inner", "Parallel Aware": false, "Scan Direction": "Forward", "Index Name": "identity_pkey", "Relation Name": "identity", "Alias": "identity", "Startup Cost": 0.43, "Total Cost": 1.37, "Plan Rows": 1, "Plan Width": 16, "Actual Startup Time": 0.001, "Actual Total Time": 0.001, "Actual Rows": 1, "Actual Loops": 3718206, "Index Cond": "(id = participant.identity)", "Rows Removed by Index Recheck": 0, "Heap Fetches": 3, "Shared Hit Blocks": 11155071, "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 } ] }, { "Node Type": "Index Scan", "Parent Relationship": "Inner", "Parallel Aware": false, "Scan Direction": "Forward", "Index Name": "unique_relation", "Relation Name": "relation", "Alias": "relation", "Startup Cost": 0.41, "Total Cost": 0.44, "Plan Rows": 1, "Plan Width": 16, "Actual Startup Time": 0.001, "Actual Total Time": 0.001, "Actual Rows": 0, "Actual Loops": 3718206, "Index Cond": "((\"from\" = 'b16690e4-a3c5-4868-945e-c2458c27a525'::uuid) AND (\"to\" = identity.id))", "Rows Removed by Index Recheck": 0, "Filter": "manages", "Rows Removed by Filter": 1, "Shared Hit Blocks": 14799312, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 3, "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 } ] } ] } ] } ] }, { "Node Type": "Seq Scan", "Parent Relationship": "Inner", "Parallel Aware": false, "Relation Name": "location", "Alias": "location", "Startup Cost": 0.00, "Total Cost": 29.96, "Plan Rows": 1196, "Plan Width": 48, "Actual Startup Time": 0.001, "Actual Total Time": 0.113, "Actual Rows": 1196, "Actual Loops": 1436, "Shared Hit Blocks": 25848, "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 } ] }, { "Node Type": "Bitmap Heap Scan", "Parent Relationship": "Inner", "Parallel Aware": false, "Relation Name": "notification", "Alias": "notification", "Startup Cost": 4.36, "Total Cost": 36.83, "Plan Rows": 9, "Plan Width": 17, "Actual Startup Time": 0.005, "Actual Total Time": 0.017, "Actual Rows": 32, "Actual Loops": 1436, "Recheck Cond": "(\"user\" = 'b16690e4-a3c5-4868-945e-c2458c27a525'::uuid)", "Rows Removed by Index Recheck": 0, "Filter": "(id IS NOT NULL)", "Rows Removed by Filter": 0, "Exact Heap Blocks": 22976, "Lossy Heap Blocks": 0, "Shared Hit Blocks": 27284, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 1, "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, "Index Name": "notification_user_idx", "Startup Cost": 0.00, "Total Cost": 4.36, "Plan Rows": 9, "Plan Width": 0, "Actual Startup Time": 0.004, "Actual Total Time": 0.004, "Actual Rows": 32, "Actual Loops": 1436, "Index Cond": "(\"user\" = 'b16690e4-a3c5-4868-945e-c2458c27a525'::uuid)", "Shared Hit Blocks": 4308, "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 } ] }, { "Node Type": "Limit", "Parent Relationship": "SubPlan", "Subplan Name": "SubPlan 1", "Parallel Aware": false, "Startup Cost": 35.68, "Total Cost": 35.68, "Plan Rows": 1, "Plan Width": 24, "Actual Startup Time": 0.006, "Actual Total Time": 0.006, "Actual Rows": 0, "Actual Loops": 45952, "Shared Hit Blocks": 386368, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 1, "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, "Startup Cost": 35.68, "Total Cost": 35.68, "Plan Rows": 1, "Plan Width": 24, "Actual Startup Time": 0.005, "Actual Total Time": 0.005, "Actual Rows": 0, "Actual Loops": 45952, "Sort Key": ["notification3.\"time\" DESC"], "Sort Method": "quicksort", "Sort Space Used": 25, "Sort Space Type": "Memory", "Shared Hit Blocks": 386368, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 1, "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": "Nested Loop", "Parent Relationship": "Outer", "Parallel Aware": false, "Join Type": "Inner", "Startup Cost": 4.91, "Total Cost": 35.67, "Plan Rows": 1, "Plan Width": 24, "Actual Startup Time": 0.005, "Actual Total Time": 0.005, "Actual Rows": 0, "Actual Loops": 45952, "Shared Hit Blocks": 386368, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 1, "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": "Nested Loop", "Parent Relationship": "Outer", "Parallel Aware": false, "Join Type": "Inner", "Startup Cost": 4.62, "Total Cost": 34.52, "Plan Rows": 3, "Plan Width": 16, "Actual Startup Time": 0.003, "Actual Total Time": 0.003, "Actual Rows": 1, "Actual Loops": 45952, "Shared Hit Blocks": 254752, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 1, "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, "Scan Direction": "Forward", "Index Name": "thread_spool_idx", "Relation Name": "thread", "Alias": "thread2", "Startup Cost": 0.29, "Total Cost": 8.30, "Plan Rows": 1, "Plan Width": 16, "Actual Startup Time": 0.001, "Actual Total Time": 0.001, "Actual Rows": 1, "Actual Loops": 45952, "Index Cond": "(spool = spool.id)", "Rows Removed by Index Recheck": 0, "Shared Hit Blocks": 139360, "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 }, { "Node Type": "Bitmap Heap Scan", "Parent Relationship": "Inner", "Parallel Aware": false, "Relation Name": "notification_thread", "Alias": "notification_thread", "Startup Cost": 4.34, "Total Cost": 26.15, "Plan Rows": 6, "Plan Width": 32, "Actual Startup Time": 0.001, "Actual Total Time": 0.001, "Actual Rows": 1, "Actual Loops": 48928, "Recheck Cond": "(thread = thread2.id)", "Rows Removed by Index Recheck": 0, "Exact Heap Blocks": 17056, "Lossy Heap Blocks": 0, "Shared Hit Blocks": 115392, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 1, "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, "Index Name": "notification_thread_thread_idx", "Startup Cost": 0.00, "Total Cost": 4.33, "Plan Rows": 6, "Plan Width": 0, "Actual Startup Time": 0.001, "Actual Total Time": 0.001, "Actual Rows": 1, "Actual Loops": 48928, "Index Cond": "(thread = thread2.id)", "Shared Hit Blocks": 98336, "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 } ] } ] }, { "Node Type": "Index Scan", "Parent Relationship": "Inner", "Parallel Aware": false, "Scan Direction": "Forward", "Index Name": "notification_pkey", "Relation Name": "notification", "Alias": "notification3", "Startup Cost": 0.29, "Total Cost": 0.37, "Plan Rows": 1, "Plan Width": 24, "Actual Startup Time": 0.001, "Actual Total Time": 0.001, "Actual Rows": 0, "Actual Loops": 43744, "Index Cond": "(id = notification_thread.id)", "Rows Removed by Index Recheck": 0, "Filter": "((\"time\" <= '2020-10-30 16:32:38.054558-04'::timestamp with time zone) AND (\"user\" = 'b16690e4-a3c5-4868-945e-c2458c27a525'::uuid))", "Rows Removed by Filter": 1, "Shared Hit Blocks": 131616, "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 } ] } ] } ] } ] }, { "Node Type": "Bitmap Heap Scan", "Parent Relationship": "Inner", "Parallel Aware": false, "Relation Name": "notification", "Alias": "notification2", "Startup Cost": 4.36, "Total Cost": 36.83, "Plan Rows": 9, "Plan Width": 24, "Actual Startup Time": 0.006, "Actual Total Time": 0.017, "Actual Rows": 32, "Actual Loops": 18, "Recheck Cond": "(\"user\" = 'b16690e4-a3c5-4868-945e-c2458c27a525'::uuid)", "Rows Removed by Index Recheck": 0, "Exact Heap Blocks": 288, "Lossy Heap Blocks": 0, "Shared Hit Blocks": 342, "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, "Index Name": "notification_user_idx", "Startup Cost": 0.00, "Total Cost": 4.36, "Plan Rows": 9, "Plan Width": 0, "Actual Startup Time": 0.004, "Actual Total Time": 0.004, "Actual Rows": 32, "Actual Loops": 18, "Index Cond": "(\"user\" = 'b16690e4-a3c5-4868-945e-c2458c27a525'::uuid)", "Shared Hit Blocks": 54, "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 } ] }, { "Node Type": "Limit", "Parent Relationship": "SubPlan", "Subplan Name": "SubPlan 2", "Parallel Aware": false, "Startup Cost": 0.87, "Total Cost": 16.13, "Plan Rows": 1, "Plan Width": 24, "Actual Startup Time": 0.001, "Actual Total Time": 0.001, "Actual Rows": 0, "Actual Loops": 576, "Shared Hit Blocks": 1152, "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": "Nested Loop", "Parent Relationship": "Outer", "Parallel Aware": false, "Join Type": "Inner", "Startup Cost": 0.87, "Total Cost": 16.13, "Plan Rows": 1, "Plan Width": 24, "Actual Startup Time": 0.001, "Actual Total Time": 0.001, "Actual Rows": 0, "Actual Loops": 576, "Shared Hit Blocks": 1152, "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": "Nested Loop", "Parent Relationship": "Outer", "Parallel Aware": false, "Join Type": "Inner", "Startup Cost": 0.58, "Total Cost": 15.80, "Plan Rows": 1, "Plan Width": 40, "Actual Startup Time": 0.001, "Actual Total Time": 0.001, "Actual Rows": 0, "Actual Loops": 576, "Shared Hit Blocks": 1152, "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, "Scan Direction": "Backward", "Index Name": "notification_time_idx", "Relation Name": "notification", "Alias": "notification3_1", "Startup Cost": 0.29, "Total Cost": 7.48, "Plan Rows": 1, "Plan Width": 24, "Actual Startup Time": 0.001, "Actual Total Time": 0.001, "Actual Rows": 0, "Actual Loops": 576, "Index Cond": "(\"time\" > '2020-10-30 16:32:38.054558-04'::timestamp with time zone)", "Rows Removed by Index Recheck": 0, "Filter": "(\"user\" = 'b16690e4-a3c5-4868-945e-c2458c27a525'::uuid)", "Rows Removed by Filter": 0, "Shared Hit Blocks": 1152, "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 }, { "Node Type": "Index Scan", "Parent Relationship": "Inner", "Parallel Aware": false, "Scan Direction": "Forward", "Index Name": "notification_thread_pkey", "Relation Name": "notification_thread", "Alias": "notification_thread_1", "Startup Cost": 0.29, "Total Cost": 8.31, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 0.000, "Actual Total Time": 0.000, "Actual Rows": 0, "Actual Loops": 0, "Index Cond": "(id = notification3_1.id)", "Rows Removed by Index Recheck": 0, "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 } ] }, { "Node Type": "Index Scan", "Parent Relationship": "Inner", "Parallel Aware": false, "Scan Direction": "Forward", "Index Name": "thread_pkey", "Relation Name": "thread", "Alias": "thread2_1", "Startup Cost": 0.29, "Total Cost": 0.33, "Plan Rows": 1, "Plan Width": 16, "Actual Startup Time": 0.000, "Actual Total Time": 0.000, "Actual Rows": 0, "Actual Loops": 0, "Index Cond": "(id = notification_thread_1.thread)", "Rows Removed by Index Recheck": 0, "Filter": "(spool = spool.id)", "Rows Removed by Filter": 0, "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": 6.052, "Triggers": [ ], "Execution Time": 14389.416 } ]
