explain.depesz.com

PostgreSQL's explain analyze made readable

Result: nm8J

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 0.000 ↓ 0.0

XN HashAggregate (cost=1,227,492,162,427.54..1,227,492,162,427.56 rows=1 width=650) (actual rows= loops=)

2. 0.000 0.000 ↓ 0.0

XN Subquery Scan outer_q (cost=1,227,492,162,417.82..1,227,492,162,427.52 rows=1 width=650) (actual rows= loops=)

  • Filter: (rn = 1)
3. 0.000 0.000 ↓ 0.0

XN Window (cost=1,227,492,162,417.82..1,227,492,162,425.10 rows=194 width=155) (actual rows= loops=)

  • Partition: dim_ab_customers.amazon_account_skey, dim_ab_customers.marketplace_id
  • Order: dim_ab_customers.business_registration_date
4. 0.000 0.000 ↓ 0.0

XN Sort (cost=1,227,492,162,417.82..1,227,492,162,418.31 rows=194 width=155) (actual rows= loops=)

  • Sort Key: dim_ab_customers.amazon_account_skey, dim_ab_customers.marketplace_id, dim_ab_customers.business_registration_date
5. 0.000 0.000 ↓ 0.0

XN Network (cost=217,983,885,981.76..227,492,162,410.45 rows=194 width=155) (actual rows= loops=)

  • Distribute
6. 0.000 0.000 ↓ 0.0

XN Hash Join DS_BCAST_INNER (cost=217,983,885,981.76..227,492,162,410.45 rows=194 width=155) (actual rows= loops=)

  • Hash Cond: (("outer".amazon_account_skey = ("inner".customer_id)::numeric) AND ("outer".marketplace_id = "inner".marketplace_skey))
  • Join Filter: (("inner".comm_creation_day_lcl_skey <= (to_char("outer".effective_end_date, 'YYYYMMDD'::text))::integer) AND ("inner".comm_creation_day_lcl_skey >= (to_char("outer".effective_start_date, 'YYYYMMDD'::text))::integer) AND ("inner".comm_creation_day_utc >= trunc("outer".business_registration_date)))
7. 0.000 0.000 ↓ 0.0

XN Seq Scan on dim_ab_customers (cost=0.00..486,311.96 rows=9,610,568 width=41) (actual rows= loops=)

  • Filter: (((is_active_now)::text = 'Y'::text) AND (marketplace_id = 1) AND ((is_business_account_active)::text = 'Y'::text) AND (is_internal_business_account = 0))
8. 0.000 0.000 ↓ 0.0

XN Hash (cost=217,983,885,951.84..217,983,885,951.84 rows=5,984 width=146) (actual rows= loops=)

9. 0.000 0.000 ↓ 0.0

XN Hash Join DS_BCAST_INNER (cost=33,600,535.18..217,983,885,951.84 rows=5,984 width=146) (actual rows= loops=)

  • Hash Cond: ("outer".comm_id = "inner".comm_id)
10. 0.000 0.000 ↓ 0.0

XN Hash Join DS_BCAST_INNER (cost=560.80..4,599,710,764.89 rows=18,146,061 width=90) (actual rows= loops=)

  • Hash Cond: (("outer".routing_skill_skey = "inner".routing_skill_skey) AND ("outer".marketplace_skey = "inner".marketplace_skey))
11. 0.000 0.000 ↓ 0.0

XN Seq Scan on fact_hmd_na hmd (cost=0.00..3,603,291.86 rows=96,121,147 width=61) (actual rows= loops=)

  • Filter: ((comm_creation_day_utc >= '2019-01-01 00:00:00'::timestamp without time zone) AND (customer_id > 1) AND (marketplace_skey = 1) AND ((owner_agent_login)::text <> 'drone'::text) AND ((owner_agent_login)::text <> 'cs-arf'::text))
12. 0.000 0.000 ↓ 0.0

XN Hash (cost=516.65..516.65 rows=8,830 width=41) (actual rows= loops=)

13. 0.000 0.000 ↓ 0.0

XN Seq Scan on dim_cs_routing_skills dcrs (cost=0.00..516.65 rows=8,830 width=41) (actual rows= loops=)

  • Filter: ((marketplace_skey = 1) AND (cs_managed_name IS NOT NULL))
14. 0.000 0.000 ↓ 0.0

XN Hash (cost=33,599,322.45..33,599,322.45 rows=260,773 width=72) (actual rows= loops=)

15. 0.000 0.000 ↓ 0.0

XN Subquery Scan ct (cost=33,595,410.85..33,599,322.45 rows=260,773 width=72) (actual rows= loops=)

16. 0.000 0.000 ↓ 0.0

XN HashAggregate (cost=33,595,410.85..33,596,714.72 rows=260,773 width=24) (actual rows= loops=)

17. 0.000 0.000 ↓ 0.0

XN Seq Scan on fact_contact_skill_na (cost=0.00..22,886,969.60 rows=1,427,792,167 width=24) (actual rows= loops=)

  • Filter: ((direction)::text = 'Inbound'::text)