# Variant 07 + JS Reassembly — 2026-05-13 — firecrawl-deep ## Config - org_id: `biu9vSF7vghBLSKW1UTDwxHBAivjnPaK` - env: `live` - limit: 1000 (fetch 1001) - deep cursor: `{ t: 1774237983361, id: 772c9569-fc97-4c30-9fd8-c8a585b66755 }` - SQL repeats: 1 - reassembly repeats: 20 (after 3 warmup runs) ## SQL (server-side, EXPLAIN ANALYZE Execution Time, network-free) | min | median | p95 | max | |---|---|---|---| | 165.69ms | 165.69ms | 165.69ms | 165.69ms | Samples: 165.7ms ## Reassembly (JS, in-memory) | min | median | p95 | max | |---|---|---|---| | 0.64ms | 0.84ms | 1.85ms | 1.85ms | Samples: 0.64ms, 0.65ms, 0.72ms, 0.82ms, 0.82ms, 0.83ms, 0.83ms, 0.83ms, 0.83ms, 0.83ms, 0.84ms, 0.85ms, 0.86ms, 0.86ms, 0.88ms, 0.89ms, 1.06ms, 1.73ms, 1.78ms, 1.85ms ## Total network-free **166.53ms** = 165.69ms SQL + 0.84ms reassembly ## Row counts ```json { "customers": 1001, "customer_products": 1001, "customer_entitlements": 2003, "extra_customer_entitlements": 1185, "customer_prices": 2, "entitlements": 1190, "rollovers": 0, "replaceables": 0, "free_trials": 0, "subscriptions": 1 } ``` Payload size: 4.95 MB ## Reference: UK→US client wall One-shot `db.execute`: 1873.15ms ## Last EXPLAIN plan (JSON) ```json { "Plan": { "Node Type": "Result", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 207757.4, "Total Cost": 207757.41, "Plan Rows": 1, "Plan Width": 320, "Actual Startup Time": 165.289, "Actual Total Time": 165.319, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Shared Hit Blocks": 39926, "Shared Read Blocks": 1655, "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": "Limit", "Parent Relationship": "InitPlan", "Subplan Name": "CTE cr", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.56, "Total Cost": 330.43, "Plan Rows": 1001, "Plan Width": 105, "Actual Startup Time": 0.077, "Actual Total Time": 13.257, "Actual Rows": 1001, "Actual Loops": 1, "Disabled": false, "Shared Hit Blocks": 239, "Shared Read Blocks": 779, "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": "idx_customers_cursor", "Relation Name": "customers", "Alias": "c", "Startup Cost": 0.56, "Total Cost": 252899.17, "Plan Rows": 767419, "Plan Width": 105, "Actual Startup Time": 0.076, "Actual Total Time": 13.151, "Actual Rows": 1001, "Actual Loops": 1, "Disabled": false, "Index Cond": "((org_id = 'biu9vSF7vghBLSKW1UTDwxHBAivjnPaK'::text) AND (env = 'live'::text) AND (ROW(created_at, id) < ROW('1774237983361'::numeric, '772c9569-fc97-4c30-9fd8-c8a585b66755'::text)))", "Rows Removed by Index Recheck": 0, "Index Searches": 1, "Shared Hit Blocks": 239, "Shared Read Blocks": 779, "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": "Nested Loop", "Parent Relationship": "InitPlan", "Subplan Name": "CTE cps_flat", "Parallel Aware": false, "Async Capable": false, "Join Type": "Inner", "Startup Cost": 5.21, "Total Cost": 4952.98, "Plan Rows": 2002, "Plan Width": 178, "Actual Startup Time": 0.192, "Actual Total Time": 45.007, "Actual Rows": 1001, "Actual Loops": 1, "Disabled": false, "Inner Unique": true, "Shared Hit Blocks": 5656, "Shared Read Blocks": 364, "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, "Async Capable": false, "Join Type": "Inner", "Startup Cost": 4.79, "Total Cost": 4856.5, "Plan Rows": 2002, "Plan Width": 720, "Actual Startup Time": 0.097, "Actual Total Time": 9.059, "Actual Rows": 1001, "Actual Loops": 1, "Disabled": false, "Inner Unique": false, "Shared Hit Blocks": 5648, "Shared Read Blocks": 364, "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": "CTE Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "CTE Name": "cr", "Alias": "cr", "Startup Cost": 0, "Total Cost": 20.02, "Plan Rows": 1001, "Plan Width": 32, "Actual Startup Time": 0.001, "Actual Total Time": 0.286, "Actual Rows": 1001, "Actual Loops": 1, "Disabled": false, "Storage": "Memory", "Maximum Storage": 1066, "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": "Subquery Scan", "Parent Relationship": "Inner", "Parallel Aware": false, "Async Capable": false, "Alias": "cp", "Startup Cost": 4.79, "Total Cost": 4.81, "Plan Rows": 2, "Plan Width": 720, "Actual Startup Time": 0.008, "Actual Total Time": 0.008, "Actual Rows": 1, "Actual Loops": 1001, "Disabled": false, "Shared Hit Blocks": 5648, "Shared Read Blocks": 364, "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": "Limit", "Parent Relationship": "Subquery", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 4.79, "Total Cost": 4.79, "Plan Rows": 2, "Plan Width": 550, "Actual Startup Time": 0.007, "Actual Total Time": 0.007, "Actual Rows": 1, "Actual Loops": 1001, "Disabled": false, "Shared Hit Blocks": 5648, "Shared Read Blocks": 364, "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": 4.79, "Total Cost": 4.79, "Plan Rows": 2, "Plan Width": 550, "Actual Startup Time": 0.007, "Actual Total Time": 0.007, "Actual Rows": 1, "Actual Loops": 1001, "Disabled": false, "Sort Key": [ "cp_1.created_at DESC" ], "Sort Method": "quicksort", "Sort Space Used": 25, "Sort Space Type": "Memory", "Shared Hit Blocks": 5648, "Shared Read Blocks": 364, "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": "customer_products_internal_customer_id_idx", "Relation Name": "customer_products", "Alias": "cp_1", "Startup Cost": 0.56, "Total Cost": 4.78, "Plan Rows": 2, "Plan Width": 550, "Actual Startup Time": 0.006, "Actual Total Time": 0.006, "Actual Rows": 1, "Actual Loops": 1001, "Disabled": false, "Index Cond": "(internal_customer_id = cr.internal_id)", "Rows Removed by Index Recheck": 0, "Filter": "(status = ANY ('{active,past_due,scheduled}'::text[]))", "Rows Removed by Filter": 1, "Index Searches": 1001, "Shared Hit Blocks": 5648, "Shared Read Blocks": 364, "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": "Memoize", "Parent Relationship": "Inner", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.42, "Total Cost": 2.14, "Plan Rows": 1, "Plan Width": 282, "Actual Startup Time": 0, "Actual Total Time": 0, "Actual Rows": 1, "Actual Loops": 1001, "Disabled": false, "Cache Key": "cp.internal_product_id", "Cache Mode": "logical", "Cache Hits": 999, "Cache Misses": 2, "Cache Evictions": 0, "Cache Overflows": 0, "Peak Memory Usage": 1, "Shared Hit Blocks": 8, "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": "plans_pkey", "Relation Name": "products", "Alias": "prod", "Startup Cost": 0.41, "Total Cost": 2.13, "Plan Rows": 1, "Plan Width": 282, "Actual Startup Time": 0.015, "Actual Total Time": 0.015, "Actual Rows": 1, "Actual Loops": 2, "Disabled": false, "Index Cond": "(internal_id = cp.internal_product_id)", "Rows Removed by Index Recheck": 0, "Index Searches": 2, "Shared Hit Blocks": 8, "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": "Append", "Parent Relationship": "InitPlan", "Subplan Name": "CTE ces_combined", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.56, "Total Cost": 157542.66, "Plan Rows": 213971, "Plan Width": 132, "Actual Startup Time": 0.05, "Actual Total Time": 29.088, "Actual Rows": 3188, "Actual Loops": 1, "Disabled": false, "Shared Hit Blocks": 9113, "Shared Read Blocks": 141, "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, "Subplans Removed": 0, "Plans": [ { "Node Type": "Nested Loop", "Parent Relationship": "Member", "Parallel Aware": false, "Async Capable": false, "Join Type": "Inner", "Startup Cost": 0.56, "Total Cost": 149716.32, "Plan Rows": 207965, "Plan Width": 132, "Actual Startup Time": 0.05, "Actual Total Time": 18.821, "Actual Rows": 2003, "Actual Loops": 1, "Disabled": false, "Inner Unique": false, "Shared Hit Blocks": 4933, "Shared Read Blocks": 130, "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": "CTE Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "CTE Name": "cps_flat", "Alias": "cps_flat", "Startup Cost": 0, "Total Cost": 40.04, "Plan Rows": 2002, "Plan Width": 32, "Actual Startup Time": 0.001, "Actual Total Time": 0.29, "Actual Rows": 1001, "Actual Loops": 1, "Disabled": false, "Storage": "Memory", "Maximum Storage": 1385, "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, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "idx_customer_entitlements_product_id", "Relation Name": "customer_entitlements", "Alias": "ce", "Startup Cost": 0.56, "Total Cost": 73.46, "Plan Rows": 104, "Plan Width": 445, "Actual Startup Time": 0.009, "Actual Total Time": 0.01, "Actual Rows": 2, "Actual Loops": 1001, "Disabled": false, "Index Cond": "(customer_product_id = cps_flat.id)", "Rows Removed by Index Recheck": 0, "Index Searches": 1001, "Shared Hit Blocks": 4933, "Shared Read Blocks": 130, "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": "Nested Loop", "Parent Relationship": "Member", "Parallel Aware": false, "Async Capable": false, "Join Type": "Inner", "Startup Cost": 6.58, "Total Cost": 6756.48, "Plan Rows": 6006, "Plan Width": 132, "Actual Startup Time": 0.042, "Actual Total Time": 9.963, "Actual Rows": 1185, "Actual Loops": 1, "Disabled": false, "Inner Unique": false, "Shared Hit Blocks": 4180, "Shared Read Blocks": 11, "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": "CTE Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "CTE Name": "cr", "Alias": "cr_1", "Startup Cost": 0, "Total Cost": 20.02, "Plan Rows": 1001, "Plan Width": 32, "Actual Startup Time": 0, "Actual Total Time": 0.255, "Actual Rows": 1001, "Actual Loops": 1, "Disabled": false, "Storage": "Memory", "Maximum Storage": 1066, "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": "Subquery Scan", "Parent Relationship": "Inner", "Parallel Aware": false, "Async Capable": false, "Alias": "ce_1", "Startup Cost": 6.58, "Total Cost": 6.65, "Plan Rows": 6, "Plan Width": 537, "Actual Startup Time": 0.005, "Actual Total Time": 0.005, "Actual Rows": 1.18, "Actual Loops": 1001, "Disabled": false, "Shared Hit Blocks": 4180, "Shared Read Blocks": 11, "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": "Limit", "Parent Relationship": "Subquery", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 6.58, "Total Cost": 6.59, "Plan Rows": 6, "Plan Width": 445, "Actual Startup Time": 0.004, "Actual Total Time": 0.005, "Actual Rows": 1.18, "Actual Loops": 1001, "Disabled": false, "Shared Hit Blocks": 4180, "Shared Read Blocks": 11, "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": 6.58, "Total Cost": 6.59, "Plan Rows": 6, "Plan Width": 445, "Actual Startup Time": 0.004, "Actual Total Time": 0.004, "Actual Rows": 1.18, "Actual Loops": 1001, "Disabled": false, "Sort Key": [ "ce_2.id DESC" ], "Sort Method": "quicksort", "Sort Space Used": 26, "Sort Space Type": "Memory", "Shared Hit Blocks": 4180, "Shared Read Blocks": 11, "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": "idx_customer_entitlements_loose_customer_expires", "Relation Name": "customer_entitlements", "Alias": "ce_2", "Startup Cost": 0.43, "Total Cost": 6.5, "Plan Rows": 6, "Plan Width": 445, "Actual Startup Time": 0.003, "Actual Total Time": 0.003, "Actual Rows": 1.18, "Actual Loops": 1001, "Disabled": false, "Index Cond": "(internal_customer_id = cr_1.internal_id)", "Rows Removed by Index Recheck": 0, "Filter": "((expires_at IS NULL) OR (expires_at > (EXTRACT(epoch FROM now()) * '1000'::numeric)))", "Rows Removed by Filter": 0, "Index Searches": 1001, "Shared Hit Blocks": 4180, "Shared Read Blocks": 11, "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": "Result", "Parent Relationship": "InitPlan", "Subplan Name": "CTE arrays", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 29267.47, "Total Cost": 29267.48, "Plan Rows": 1, "Plan Width": 96, "Actual Startup Time": 4.413, "Actual Total Time": 4.416, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "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, "Plans": [ { "Node Type": "Aggregate", "Strategy": "Plain", "Partial Mode": "Simple", "Parent Relationship": "InitPlan", "Subplan Name": "InitPlan 4", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 4814.35, "Total Cost": 4814.36, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 0.867, "Actual Total Time": 0.868, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "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, "Plans": [ { "Node Type": "CTE Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "CTE Name": "ces_combined", "Alias": "ces_combined", "Startup Cost": 0, "Total Cost": 4279.42, "Plan Rows": 213971, "Plan Width": 32, "Actual Startup Time": 0, "Actual Total Time": 0.389, "Actual Rows": 3188, "Actual Loops": 1, "Disabled": false, "Storage": "Memory", "Maximum Storage": 2490, "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": "Aggregate", "Strategy": "Plain", "Partial Mode": "Simple", "Parent Relationship": "InitPlan", "Subplan Name": "InitPlan 5", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 24293.26, "Total Cost": 24293.27, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 3.118, "Actual Total Time": 3.119, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "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, "Plans": [ { "Node Type": "Sort", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 23223.4, "Total Cost": 23758.33, "Plan Rows": 213971, "Plan Width": 32, "Actual Startup Time": 2.647, "Actual Total Time": 2.804, "Actual Rows": 3188, "Actual Loops": 1, "Disabled": false, "Sort Key": [ "ces_combined_1.entitlement_id" ], "Sort Method": "quicksort", "Sort Space Used": 97, "Sort Space Type": "Memory", "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, "Plans": [ { "Node Type": "CTE Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "CTE Name": "ces_combined", "Alias": "ces_combined_1", "Startup Cost": 0, "Total Cost": 4279.42, "Plan Rows": 213971, "Plan Width": 32, "Actual Startup Time": 0.001, "Actual Total Time": 0.374, "Actual Rows": 3188, "Actual Loops": 1, "Disabled": false, "Storage": "Memory", "Maximum Storage": 2490, "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": "Aggregate", "Strategy": "Plain", "Partial Mode": "Simple", "Parent Relationship": "InitPlan", "Subplan Name": "InitPlan 6", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 159.83, "Total Cost": 159.84, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 0.411, "Actual Total Time": 0.411, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "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, "Plans": [ { "Node Type": "Sort", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 149.82, "Total Cost": 154.83, "Plan Rows": 2002, "Plan Width": 32, "Actual Startup Time": 0.309, "Actual Total Time": 0.355, "Actual Rows": 1001, "Actual Loops": 1, "Disabled": false, "Sort Key": [ "cps_flat_1.free_trial_id" ], "Sort Method": "quicksort", "Sort Space Used": 25, "Sort Space Type": "Memory", "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, "Plans": [ { "Node Type": "CTE Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "CTE Name": "cps_flat", "Alias": "cps_flat_1", "Startup Cost": 0, "Total Cost": 40.04, "Plan Rows": 2002, "Plan Width": 32, "Actual Startup Time": 0.001, "Actual Total Time": 0.226, "Actual Rows": 1001, "Actual Loops": 1, "Disabled": false, "Storage": "Memory", "Maximum Storage": 1385, "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": "Aggregate", "Strategy": "Plain", "Partial Mode": "Simple", "Parent Relationship": "InitPlan", "Subplan Name": "InitPlan 8", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 22.53, "Total Cost": 22.54, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 14.454, "Actual Total Time": 14.455, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Shared Hit Blocks": 239, "Shared Read Blocks": 779, "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": "CTE Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "CTE Name": "cr", "Alias": "cr_2", "Startup Cost": 0, "Total Cost": 20.02, "Plan Rows": 1001, "Plan Width": 32, "Actual Startup Time": 0.079, "Actual Total Time": 13.834, "Actual Rows": 1001, "Actual Loops": 1, "Disabled": false, "Storage": "Memory", "Maximum Storage": 1066, "Shared Hit Blocks": 239, "Shared Read Blocks": 779, "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": "Aggregate", "Strategy": "Plain", "Partial Mode": "Simple", "Parent Relationship": "InitPlan", "Subplan Name": "InitPlan 9", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 45.05, "Total Cost": 45.06, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 48.08, "Actual Total Time": 48.08, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Shared Hit Blocks": 5656, "Shared Read Blocks": 364, "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": "CTE Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "CTE Name": "cps_flat", "Alias": "cps_flat_2", "Startup Cost": 0, "Total Cost": 40.04, "Plan Rows": 2002, "Plan Width": 32, "Actual Startup Time": 0.195, "Actual Total Time": 45.984, "Actual Rows": 1001, "Actual Loops": 1, "Disabled": false, "Storage": "Memory", "Maximum Storage": 1385, "Shared Hit Blocks": 5656, "Shared Read Blocks": 364, "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": "Aggregate", "Strategy": "Plain", "Partial Mode": "Simple", "Parent Relationship": "InitPlan", "Subplan Name": "InitPlan 10", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 4817.02, "Total Cost": 4817.03, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 33.388, "Actual Total Time": 33.389, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Shared Hit Blocks": 9113, "Shared Read Blocks": 141, "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": "CTE Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "CTE Name": "ces_combined", "Alias": "ces_combined_2", "Startup Cost": 0, "Total Cost": 4814.35, "Plan Rows": 1070, "Plan Width": 32, "Actual Startup Time": 0.054, "Actual Total Time": 31.19, "Actual Rows": 2003, "Actual Loops": 1, "Disabled": false, "Filter": "(kind = 'bound'::text)", "Rows Removed by Filter": 1185, "Storage": "Memory", "Maximum Storage": 2490, "Shared Hit Blocks": 9113, "Shared Read Blocks": 141, "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": "Aggregate", "Strategy": "Plain", "Partial Mode": "Simple", "Parent Relationship": "InitPlan", "Subplan Name": "InitPlan 11", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 4817.02, "Total Cost": 4817.03, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 0.985, "Actual Total Time": 0.986, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "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, "Plans": [ { "Node Type": "CTE Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "CTE Name": "ces_combined", "Alias": "ces_combined_3", "Startup Cost": 0, "Total Cost": 4814.35, "Plan Rows": 1070, "Plan Width": 32, "Actual Startup Time": 0.268, "Actual Total Time": 0.422, "Actual Rows": 1185, "Actual Loops": 1, "Disabled": false, "Filter": "(kind = 'loose'::text)", "Rows Removed by Filter": 2003, "Storage": "Memory", "Maximum Storage": 2490, "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": "Aggregate", "Strategy": "Plain", "Partial Mode": "Simple", "Parent Relationship": "InitPlan", "Subplan Name": "InitPlan 12", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 5645.7, "Total Cost": 5645.71, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 5.391, "Actual Total Time": 5.394, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Shared Hit Blocks": 3011, "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, "Plans": [ { "Node Type": "Nested Loop", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Join Type": "Left", "Startup Cost": 0.85, "Total Cost": 5580.3, "Plan Rows": 3737, "Plan Width": 209, "Actual Startup Time": 2.347, "Actual Total Time": 5.309, "Actual Rows": 2, "Actual Loops": 1, "Disabled": false, "Inner Unique": true, "Shared Hit Blocks": 3011, "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, "Plans": [ { "Node Type": "Nested Loop", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Join Type": "Inner", "Startup Cost": 0.42, "Total Cost": 4601.91, "Plan Rows": 3737, "Plan Width": 177, "Actual Startup Time": 2.325, "Actual Total Time": 5.279, "Actual Rows": 2, "Actual Loops": 1, "Disabled": false, "Inner Unique": false, "Shared Hit Blocks": 3003, "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, "Plans": [ { "Node Type": "CTE Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "CTE Name": "cps_flat", "Alias": "cps", "Startup Cost": 0, "Total Cost": 40.04, "Plan Rows": 2002, "Plan Width": 32, "Actual Startup Time": 0.001, "Actual Total Time": 0.239, "Actual Rows": 1001, "Actual Loops": 1, "Disabled": false, "Storage": "Memory", "Maximum Storage": 1385, "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, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "idx_customer_prices_product_id", "Relation Name": "customer_prices", "Alias": "cpr", "Startup Cost": 0.42, "Total Cost": 2.26, "Plan Rows": 2, "Plan Width": 177, "Actual Startup Time": 0.005, "Actual Total Time": 0.005, "Actual Rows": 0, "Actual Loops": 1001, "Disabled": false, "Index Cond": "(customer_product_id = cps.id)", "Rows Removed by Index Recheck": 0, "Index Searches": 1001, "Shared Hit Blocks": 3003, "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 } ] }, { "Node Type": "Memoize", "Parent Relationship": "Inner", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.43, "Total Cost": 0.45, "Plan Rows": 1, "Plan Width": 63, "Actual Startup Time": 0.013, "Actual Total Time": 0.013, "Actual Rows": 1, "Actual Loops": 2, "Disabled": false, "Cache Key": "cpr.price_id", "Cache Mode": "logical", "Cache Hits": 0, "Cache Misses": 2, "Cache Evictions": 0, "Cache Overflows": 0, "Peak Memory Usage": 2, "Shared Hit Blocks": 8, "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": "prices_pkey", "Relation Name": "prices", "Alias": "p", "Startup Cost": 0.42, "Total Cost": 0.44, "Plan Rows": 1, "Plan Width": 63, "Actual Startup Time": 0.008, "Actual Total Time": 0.008, "Actual Rows": 1, "Actual Loops": 2, "Disabled": false, "Index Cond": "(id = cpr.price_id)", "Rows Removed by Index Recheck": 0, "Index Searches": 2, "Shared Hit Blocks": 8, "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": "Aggregate", "Strategy": "Plain", "Partial Mode": "Simple", "Parent Relationship": "InitPlan", "Subplan Name": "InitPlan 14", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 26.08, "Total Cost": 26.09, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 38.57, "Actual Total Time": 38.573, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Shared Hit Blocks": 9154, "Shared Read Blocks": 366, "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": "CTE Scan", "Parent Relationship": "InitPlan", "Subplan Name": "InitPlan 13", "Parallel Aware": false, "Async Capable": false, "CTE Name": "arrays", "Alias": "arrays", "Startup Cost": 0, "Total Cost": 0.02, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 4.594, "Actual Total Time": 4.595, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Storage": "Memory", "Maximum Storage": 183, "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": "Nested Loop", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Join Type": "Inner", "Startup Cost": 0.84, "Total Cost": 25.89, "Plan Rows": 10, "Plan Width": 653, "Actual Startup Time": 4.801, "Actual Total Time": 12.288, "Actual Rows": 1190, "Actual Loops": 1, "Disabled": false, "Inner Unique": true, "Shared Hit Blocks": 9154, "Shared Read Blocks": 366, "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, "Async Capable": false, "Join Type": "Inner", "Startup Cost": 0.43, "Total Cost": 21.55, "Plan Rows": 10, "Plan Width": 359, "Actual Startup Time": 4.787, "Actual Total Time": 9.966, "Actual Rows": 1190, "Actual Loops": 1, "Disabled": false, "Inner Unique": true, "Shared Hit Blocks": 4394, "Shared Read Blocks": 366, "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": "Function Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Function Name": "unnest", "Alias": "u", "Startup Cost": 0, "Total Cost": 0.1, "Plan Rows": 10, "Plan Width": 32, "Actual Startup Time": 4.744, "Actual Total Time": 4.865, "Actual Rows": 1190, "Actual Loops": 1, "Disabled": false, "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, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "entitlements_pkey", "Relation Name": "entitlements", "Alias": "e", "Startup Cost": 0.43, "Total Cost": 2.15, "Plan Rows": 1, "Plan Width": 359, "Actual Startup Time": 0.004, "Actual Total Time": 0.004, "Actual Rows": 1, "Actual Loops": 1190, "Disabled": false, "Index Cond": "(id = (u.entitlement_id)::text)", "Rows Removed by Index Recheck": 0, "Index Searches": 1190, "Shared Hit Blocks": 4394, "Shared Read Blocks": 366, "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, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "features_pkey", "Relation Name": "features", "Alias": "f", "Startup Cost": 0.41, "Total Cost": 0.43, "Plan Rows": 1, "Plan Width": 294, "Actual Startup Time": 0.001, "Actual Total Time": 0.001, "Actual Rows": 1, "Actual Loops": 1190, "Disabled": false, "Index Cond": "(internal_id = (e.internal_feature_id)::text)", "Rows Removed by Index Recheck": 0, "Index Searches": 1190, "Shared Hit Blocks": 4760, "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": "Aggregate", "Strategy": "Plain", "Partial Mode": "Simple", "Parent Relationship": "InitPlan", "Subplan Name": "InitPlan 16", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 32.68, "Total Cost": 32.69, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 19.659, "Actual Total Time": 19.662, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Shared Hit Blocks": 12750, "Shared Read Blocks": 2, "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": "CTE Scan", "Parent Relationship": "InitPlan", "Subplan Name": "InitPlan 15", "Parallel Aware": false, "Async Capable": false, "CTE Name": "arrays", "Alias": "arrays_1", "Startup Cost": 0, "Total Cost": 0.02, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 0.087, "Actual Total Time": 0.087, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Storage": "Memory", "Maximum Storage": 183, "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": "Nested Loop", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Join Type": "Inner", "Startup Cost": 0.56, "Total Cost": 32.46, "Plan Rows": 40, "Plan Width": 91, "Actual Startup Time": 19.655, "Actual Total Time": 19.656, "Actual Rows": 0, "Actual Loops": 1, "Disabled": false, "Inner Unique": false, "Shared Hit Blocks": 12750, "Shared Read Blocks": 2, "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": "Function Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Function Name": "unnest", "Alias": "u_1", "Startup Cost": 0, "Total Cost": 0.1, "Plan Rows": 10, "Plan Width": 32, "Actual Startup Time": 0.316, "Actual Total Time": 0.498, "Actual Rows": 3188, "Actual Loops": 1, "Disabled": false, "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, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "idx_rollovers_cus_ent_id", "Relation Name": "rollovers", "Alias": "ro", "Startup Cost": 0.56, "Total Cost": 3.2, "Plan Rows": 4, "Plan Width": 91, "Actual Startup Time": 0.006, "Actual Total Time": 0.006, "Actual Rows": 0, "Actual Loops": 3188, "Disabled": false, "Index Cond": "(cus_ent_id = u_1.ce_id)", "Rows Removed by Index Recheck": 0, "Filter": "((expires_at IS NULL) OR (expires_at > (EXTRACT(epoch FROM now()) * '1000'::numeric)))", "Rows Removed by Filter": 0, "Index Searches": 3188, "Shared Hit Blocks": 12750, "Shared Read Blocks": 2, "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": "Aggregate", "Strategy": "Plain", "Partial Mode": "Simple", "Parent Relationship": "InitPlan", "Subplan Name": "InitPlan 18", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 1.73, "Total Cost": 1.74, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 1.262, "Actual Total Time": 1.264, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Shared Hit Blocks": 1, "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": "CTE Scan", "Parent Relationship": "InitPlan", "Subplan Name": "InitPlan 17", "Parallel Aware": false, "Async Capable": false, "CTE Name": "arrays", "Alias": "arrays_2", "Startup Cost": 0, "Total Cost": 0.02, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 0.108, "Actual Total Time": 0.109, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Storage": "Memory", "Maximum Storage": 183, "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": "Hash Join", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Join Type": "Inner", "Startup Cost": 0.23, "Total Cost": 1.6, "Plan Rows": 22, "Plan Width": 98, "Actual Startup Time": 1.258, "Actual Total Time": 1.259, "Actual Rows": 0, "Actual Loops": 1, "Disabled": false, "Inner Unique": false, "Hash Cond": "(r.cus_ent_id = u_2.ce_id)", "Shared Hit Blocks": 1, "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": "Seq Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Relation Name": "replaceables", "Alias": "r", "Startup Cost": 0, "Total Cost": 1.07, "Plan Rows": 22, "Plan Width": 98, "Actual Startup Time": 0.03, "Actual Total Time": 0.033, "Actual Rows": 21, "Actual Loops": 1, "Disabled": false, "Shared Hit Blocks": 1, "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": "Hash", "Parent Relationship": "Inner", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.1, "Total Cost": 0.1, "Plan Rows": 10, "Plan Width": 32, "Actual Startup Time": 1.21, "Actual Total Time": 1.21, "Actual Rows": 3188, "Actual Loops": 1, "Disabled": false, "Hash Buckets": 4096, "Original Hash Buckets": 1024, "Hash Batches": 1, "Original Hash Batches": 1, "Peak Memory Usage": 244, "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, "Plans": [ { "Node Type": "Function Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Function Name": "unnest", "Alias": "u_2", "Startup Cost": 0, "Total Cost": 0.1, "Plan Rows": 10, "Plan Width": 32, "Actual Startup Time": 0.442, "Actual Total Time": 0.627, "Actual Rows": 3188, "Actual Loops": 1, "Disabled": false, "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": "Aggregate", "Strategy": "Plain", "Partial Mode": "Simple", "Parent Relationship": "InitPlan", "Subplan Name": "InitPlan 20", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 20.2, "Total Cost": 20.21, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 0.089, "Actual Total Time": 0.091, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "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, "Plans": [ { "Node Type": "CTE Scan", "Parent Relationship": "InitPlan", "Subplan Name": "InitPlan 19", "Parallel Aware": false, "Async Capable": false, "CTE Name": "arrays", "Alias": "arrays_3", "Startup Cost": 0, "Total Cost": 0.02, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 0.083, "Actual Total Time": 0.084, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Storage": "Memory", "Maximum Storage": 183, "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": "Nested Loop", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Join Type": "Inner", "Startup Cost": 0.29, "Total Cost": 20.13, "Plan Rows": 10, "Plan Width": 84, "Actual Startup Time": 0.088, "Actual Total Time": 0.088, "Actual Rows": 0, "Actual Loops": 1, "Disabled": false, "Inner Unique": true, "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, "Plans": [ { "Node Type": "Function Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Function Name": "unnest", "Alias": "u_3", "Startup Cost": 0, "Total Cost": 0.1, "Plan Rows": 10, "Plan Width": 32, "Actual Startup Time": 0.087, "Actual Total Time": 0.087, "Actual Rows": 0, "Actual Loops": 1, "Disabled": false, "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, "Async Capable": false, "Scan Direction": "Forward", "Index Name": "free_trials_pkey", "Relation Name": "free_trials", "Alias": "ft", "Startup Cost": 0.29, "Total Cost": 2, "Plan Rows": 1, "Plan Width": 84, "Actual Startup Time": 0, "Actual Total Time": 0, "Actual Rows": 0, "Actual Loops": 0, "Disabled": false, "Index Cond": "(id = (u_3.ft_id)::text)", "Rows Removed by Index Recheck": 0, "Index Searches": 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": "Aggregate", "Strategy": "Plain", "Partial Mode": "Simple", "Parent Relationship": "InitPlan", "Subplan Name": "InitPlan 21", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 235.72, "Total Cost": 235.73, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 1.092, "Actual Total Time": 1.094, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Shared Hit Blocks": 2, "Shared Read Blocks": 2, "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": "Subquery Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Alias": "s", "Startup Cost": 184.99, "Total Cost": 225.57, "Plan Rows": 2029, "Plan Width": 205, "Actual Startup Time": 1.071, "Actual Total Time": 1.084, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Shared Hit Blocks": 2, "Shared Read Blocks": 2, "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": "Aggregate", "Strategy": "Hashed", "Partial Mode": "Simple", "Parent Relationship": "Subquery", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 184.99, "Total Cost": 205.28, "Plan Rows": 2029, "Plan Width": 181, "Actual Startup Time": 1.066, "Actual Total Time": 1.079, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Group Key": [ "s_1.id", "s_1.stripe_id", "s_1.stripe_schedule_id", "s_1.created_at", "s_1.usage_features", "s_1.metadata", "s_1.org_id", "s_1.env", "s_1.current_period_start", "s_1.current_period_end" ], "Planned Partitions": 0, "HashAgg Batches": 1, "Peak Memory Usage": 105, "Disk Usage": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 2, "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, "Async Capable": false, "Join Type": "Inner", "Startup Cost": 0.43, "Total Cost": 134.27, "Plan Rows": 2029, "Plan Width": 181, "Actual Startup Time": 0.452, "Actual Total Time": 1.056, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Inner Unique": false, "Shared Hit Blocks": 2, "Shared Read Blocks": 2, "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, "Async Capable": false, "Join Type": "Inner", "Startup Cost": 0, "Total Cost": 80.02, "Plan Rows": 1999, "Plan Width": 32, "Actual Startup Time": 0.406, "Actual Total Time": 1.008, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Inner Unique": false, "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, "Plans": [ { "Node Type": "CTE Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "CTE Name": "cps_flat", "Alias": "cps_1", "Startup Cost": 0, "Total Cost": 40.04, "Plan Rows": 1999, "Plan Width": 32, "Actual Startup Time": 0.002, "Actual Total Time": 0.273, "Actual Rows": 1001, "Actual Loops": 1, "Disabled": false, "Filter": "(subscription_ids IS NOT NULL)", "Rows Removed by Filter": 0, "Storage": "Memory", "Maximum Storage": 1385, "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": "Function Scan", "Parent Relationship": "Inner", "Parallel Aware": false, "Async Capable": false, "Function Name": "unnest", "Alias": "sub_id_t", "Startup Cost": 0, "Total Cost": 0.01, "Plan Rows": 1, "Plan Width": 32, "Actual Startup Time": 0, "Actual Total Time": 0, "Actual Rows": 0, "Actual Loops": 1001, "Disabled": false, "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": "Memoize", "Parent Relationship": "Inner", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.43, "Total Cost": 2.15, "Plan Rows": 1, "Plan Width": 181, "Actual Startup Time": 0.043, "Actual Total Time": 0.045, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Cache Key": "sub_id_t.sub_id", "Cache Mode": "logical", "Cache Hits": 0, "Cache Misses": 1, "Cache Evictions": 0, "Cache Overflows": 0, "Peak Memory Usage": 1, "Shared Hit Blocks": 2, "Shared Read Blocks": 2, "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": "idx_subscriptions_stripe_id", "Relation Name": "subscriptions", "Alias": "s_1", "Startup Cost": 0.42, "Total Cost": 2.14, "Plan Rows": 1, "Plan Width": 181, "Actual Startup Time": 0.04, "Actual Total Time": 0.04, "Actual Rows": 1, "Actual Loops": 1, "Disabled": false, "Index Cond": "(stripe_id = sub_id_t.sub_id)", "Rows Removed by Index Recheck": 0, "Index Searches": 1, "Shared Hit Blocks": 2, "Shared Read Blocks": 2, "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": 52, "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": 2.086, "Triggers": [], "Execution Time": 165.69 } ```