explain.depesz.com

PostgreSQL's explain analyze made readable

Result: eGvu : Optimization for: plan #jgxf

Settings

Optimization path:

# exclusive inclusive rows x rows loops node
1. 0.000 335.005 ↓ 122.6 1,962 1

Gather (cost=1,155.47..16,701.28 rows=16 width=558) (actual time=2.718..335.005 rows=1,962 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
  • (never executed)
2. 0.726 273.387 ↓ 93.4 654 3 / 3

Nested Loop Left Join (cost=155.47..14,221.57 rows=7 width=394) (actual time=3.072..273.387 rows=654 loops=3)

3. 4.731 270.045 ↓ 93.4 654 3 / 3

Nested Loop Left Join (cost=155.05..14,217.10 rows=7 width=340) (actual time=3.061..270.045 rows=654 loops=3)

  • -> Index Scan using ix_cccntct_t_dcps_case_uid on cccntct_t (cost=0.42..0.63 rows=1 width=29)(actual time=0.004..0.005 rows=0 loops=1,953)
4. 3.000 265.314 ↓ 93.0 651 3 / 3

Nested Loop (cost=154.63..14,212.64 rows=7 width=315) (actual time=3.048..265.314 rows=651 loops=3)

  • Index Cond: (dcpscase_t.dcps_case_uid = dcps_case_uid)
  • Filter: ((cntct_dactvd_dt IS NULL) AND ((cntct_typ_cd)::text = '3'::text))
  • Rows Removed by Filter: 1
5. 1.885 260.361 ↓ 93.0 651 3 / 3

Nested Loop (cost=154.21..14,198.19 rows=7 width=280) (actual time=3.034..260.361 rows=651 loops=3)

6. 1.919 255.237 ↓ 3.7 810 3 / 3

Hash Join (cost=153.78..13,635.07 rows=218 width=79) (actual time=3.018..255.237 rows=810 loops=3)

  • Hash Cond: (pmtrqstpkg_t.initg_org_uid = organization_t.org_uid)
7. 17.467 252.960 ↓ 5.2 11,977 3 / 3

Merge Join (cost=1.13..13,476.33 rows=2,317 width=80) (actual time=2.466..252.960 rows=11,977 loops=3)

  • Merge Cond: (pmtrqstpkg_t.rqst_uid = ceappt_t.ce_appt_uid)
8. 196.046 196.046 ↑ 1.2 11,977 3 / 3

Parallel Index Scan using ixn01_pmtrqstpkg_t on pmtrqstpkg_t (cost=0.42..41,323.56 rows=14,935 width=55) (actual time=0.015..196.046 rows=11,977 loops=3)

  • Filter: ((rqst_typ_cd)::text = 'TRA'::text)
  • Rows Removed by Filter: 203,308
9. 39.447 39.447 ↑ 1.2 63,882 3 / 3

Index Scan using ceappt_pkey on ceappt_t (cost=0.29..3,694.22 rows=76,144 width=25) (actual time=0.017..39.447 rows=63,882 loops=3)

10. 0.108 0.358 ↑ 1.0 500 3 / 3

Hash (cost=146.41..146.41 rows=500 width=7) (actual time=0.358..0.358 rows=500 loops=3)

  • Buckets: 1,024 Batches: 1 Memory Usage: 28kB
11. 0.195 0.250 ↑ 1.0 500 3 / 3

Bitmap Heap Scan on organization_t (cost=12.16..146.41 rows=500 width=7) (actual time=0.063..0.250 rows=500 loops=3)

  • Recheck Cond: ((st_cd)::text = 'OH'::text)
  • Heap Blocks: exact=48
12. 0.055 0.055 ↑ 1.0 500 3 / 3

Bitmap Index Scan on ixb01_orgainzation_t (cost=0.00..12.03 rows=500 width=0) (actual time=0.055..0.055 rows=500 loops=3)

  • Index Cond: ((st_cd)::text = 'OH'::text)
13. 3.239 3.239 ↑ 1.0 1 2,429 / 3

Index Scan using ixf02_pmtrqstpkguid on pmtrqst_t (cost=0.42..2.57 rows=1 width=205) (actual time=0.004..0.004 rows=1 loops=2,429)

  • Index Cond: (pmtrqst_pkg_uid = pmtrqstpkg_t.pmtrqst_pkg_uid)
  • Filter: (((rqst_typ_cd)::text = 'TRA'::text) AND (((pmtrqstpkg_t.fscl_stus_cd)::text = ANY ('{OBLG,NEW,APRV}'::text[])) OR (((pmtrqstpkg_t.fscl_stus_cd)::text = ANY ('{DEND,REJT}'::text[])) AND (xmitd_ts < pmtrqstpkg_t.stus_chg_ts)) OR (xmitd_ts IS NULL)))
  • Rows Removed by Filter: 0
14. 1.953 1.953 ↑ 1.0 1 1,953 / 3

Index Scan using ixpk_dcpscase_t on dcpscase_t (cost=0.42..2.06 rows=1 width=35) (actual time=0.003..0.003 rows=1 loops=1,953)

  • Index Cond: (dcps_case_uid = pmtrqst_t.dcps_case_uid)
15. 2.616 2.616 ↑ 1.0 1 1,962 / 3

Index Scan using ixf01_clntaddr on clntaddr_t (cost=0.42..0.63 rows=1 width=58) (actual time=0.004..0.004 rows=1 loops=1,962)

  • Index Cond: (dcpscase_t.dcps_case_uid = dcps_case_uid)
  • Filter: ((addr_subtyp)::text = 'M'::text)
  • Rows Removed by Filter: 1
16.          

SubPlan (for Gather)

17. 10.158 29.430 ↑ 1.0 1 1,962

Nested Loop Left Join (cost=0.42..9.71 rows=1 width=32) (actual time=0.014..0.015 rows=1 loops=1,962)

  • Join Filter: ((caseclm_t.clm_typ)::text = (t2clmcd_t.cd)::text)
  • Rows Removed by Join Filter: 10
18. 11.772 11.772 ↑ 1.0 1 1,962

Index Scan using ixf01_caseclm on caseclm_t (cost=0.42..8.44 rows=1 width=3) (actual time=0.006..0.006 rows=1 loops=1,962)

  • Index Cond: (dcps_case_uid = dcpscase_t.dcps_case_uid)
19. 7.500 7.500 ↑ 1.5 8 2,500

Seq Scan on t2clmcd_t (cost=0.00..1.12 rows=12 width=4) (actual time=0.001..0.003 rows=8 loops=2,500)

20. 1.962 23.544 ↑ 1.0 1 1,962

Aggregate (cost=8.54..8.55 rows=1 width=8) (actual time=0.012..0.012 rows=1 loops=1,962)

21. 21.582 21.582 ↑ 1.0 1 1,962

Index Scan using ixb01_ce_appt_uid on ceappthist_t (cost=0.42..8.54 rows=1 width=8) (actual time=0.011..0.011 rows=1 loops=1,962)

  • Index Cond: (ce_appt_uid = ceappt_t.ce_appt_uid)
  • Filter: ((appt_stus_cd)::text = (ceappt_t.appt_stus_cd)::text)
  • Rows Removed by Filter: 1
22. 0.000 1.962 ↓ 0.0 0 1,962

Limit (cost=1.14..17.63 rows=1 width=6) (actual time=0.001..0.001 rows=0 loops=1,962)

23. 0.000 1.962 ↓ 0.0 0 1,962

Nested Loop (cost=1.14..17.63 rows=1 width=6) (actual time=0.001..0.001 rows=0 loops=1,962)

24. 1.962 1.962 ↓ 0.0 0 1,962

Nested Loop (cost=0.85..17.24 rows=1 width=4) (actual time=0.001..0.001 rows=0 loops=1,962)

  • Join Filter: (stcatlgprod_t.prod_uid = prodrlshp_t.rltd_prod_uid)
25. 0.000 0.000 ↓ 0.0 0 1,962

Nested Loop (cost=0.57..16.60 rows=1 width=8) (actual time=0.000..0.000 rows=0 loops=1,962)

26. 0.000 0.000 ↓ 0.0 0 1,962

Index Scan using catalog_product_uid_pkey on stcatlgprod_t (cost=0.29..8.30 rows=1 width=4) (actual time=0.000..0.000 rows=0 loops=1,962)

  • Index Cond: (st_catlg_prod_uid = pmtrqst_t.st_catlg_prod_uid)
27. 0.000 0.000 ↓ 0.0 0

Index Only Scan using prod_uid_pkey on product_t (cost=0.28..8.30 rows=1 width=4) (never executed)

  • Index Cond: (prod_uid = stcatlgprod_t.prod_uid)
  • Heap Fetches: 0
28. 0.000 0.000 ↓ 0.0 0

Index Scan using ixb01_rltd_prod_uid on prodrlshp_t (cost=0.29..0.57 rows=5 width=8) (never executed)

  • Index Cond: (rltd_prod_uid = product_t.prod_uid)
  • Filter: (((eff_endt IS NULL) OR (eff_endt > '2020-02-03'::date)) AND (eff_stdt <='2020-02-03'::date) AND ((prod_rlshp_typ_cd)::text = 'M'::text))
29. 0.000 0.000 ↓ 0.0 0

Index Scan using prod_uid_pkey on product_t product_t_1 (cost=0.28..0.39 rows=1 width=10) (never executed)

  • Index Cond: (prod_uid = prodrlshp_t.prod_uid)
  • Filter: ((prod_nmspace_cd)::text = 'OH'::text)
30. 0.000 1.962 ↓ 0.0 0 1,962

Limit (cost=1.55..18.07 rows=1 width=6) (actual time=0.001..0.001 rows=0 loops=1,962)

31. 0.000 1.962 ↓ 0.0 0 1,962

Nested Loop (cost=1.55..18.07 rows=1 width=6) (actual time=0.001..0.001 rows=0 loops=1,962)

32. 0.000 1.962 ↓ 0.0 0 1,962

Nested Loop (cost=1.27..17.67 rows=1 width=4) (actual time=0.001..0.001 rows=0 loops=1,962)

33. 1.962 1.962 ↓ 0.0 0 1,962

Nested Loop (cost=0.98..17.08 rows=1 width=8) (actual time=0.001..0.001 rows=0 loops=1,962)

34. 0.000 0.000 ↓ 0.0 0 1,962

Nested Loop (cost=0.70..16.74 rows=1 width=4) (actual time=0.000..0.000 rows=0 loops=1,962)

35. 0.000 0.000 ↓ 0.0 0 1,962

Index Scan using ceapptitem_pkey on ceapptitem_t (cost=0.42..8.44 rows=1 width=4) (actual time=0.000..0.000 rows=0 loops=1,962)

  • Index Cond: (ce_appt_itm_uid = pmtrqst_t.pmtrqst_li_id)
36. 0.000 0.000 ↓ 0.0 0

Index Scan using catalog_product_uid_pkey on stcatlgprod_t stcatlgprod_t_1 (cost=0.29..8.30 rows=1 width=8) (never executed)

  • Index Cond: (st_catlg_prod_uid = ceapptitem_t.st_catlg_prod_uid)
37. 0.000 0.000 ↓ 0.0 0

Index Only Scan using prod_uid_pkey on product_t product_t_2 (cost=0.28..0.34 rows=1 width=4) (never executed)

  • Index Cond: (prod_uid = stcatlgprod_t_1.prod_uid)
  • Heap Fetches: 0
38. 0.000 0.000 ↓ 0.0 0

Index Scan using ixb01_rltd_prod_uid on prodrlshp_t prodrlshp_t_1 (cost=0.29..0.54rows=5 width=8) (cost=0..0 rows=0 width=0) (never executed)

  • Index Cond: (rltd_prod_uid = stcatlgprod_t_1.prod_uid)
  • Filter: (((eff_endt IS NULL) OR (eff_endt > '2020-02-03'::date)) AND (eff_stdt <='2020-02-03'::date) AND ((prod_rlshp_typ_cd)::text = 'M'::text))
39. 0.000 0.000 ↓ 0.0

Index Scan using prod_uid_pkey on product_t product_t_3 (cost=0.28..0.39 rows=1 width=10) (actual rows= loops=)

  • Index Cond: (prod_uid = prodrlshp_t_1.prod_uid)
  • Filter: ((prod_nmspace_cd)::text = 'OH'::text)
40. 1.962 35.316 ↑ 1.0 1 1,962

Aggregate (cost=19.20..19.21 rows=1 width=8) (actual time=0.018..0.018 rows=1 loops=1,962)

41. 0.000 33.354 ↑ 1.0 1 1,962

Nested Loop (cost=0.85..19.20 rows=1 width=8) (actual time=0.014..0.017 rows=1 loops=1,962)

42. 23.544 23.544 ↑ 1.0 1 1,962

Index Scan using ixf03_rqstuid on corrtrkg_t (cost=0.43..10.75 rows=1 width=4) (actual time=0.010..0.012 rows=1 loops=1,962)

  • Index Cond: (rqst_uid = ceappt_t.ce_appt_uid)
  • Filter: (((rcpnt_typ_cd)::text = 'M'::text) AND ((rqst_typ_cd)::text = 'CE'::text))
  • Rows Removed by Filter: 3
43. 10.496 10.496 ↑ 1.0 1 2,624

Index Scan using ixf01_barcdtrkg_t_corrtrkg on barcdtrkg_t (cost=0.43..8.45 rows=1 width=12) (actual time=0.003..0.004 rows=1 loops=2,624)

  • Index Cond: (crsp_trkg_uid = corrtrkg_t.crsp_trkg_uid)
44. 0.000 35.316 ↑ 1.0 1 1,962

Aggregate (cost=19.20..19.21 rows=1 width=8) (actual time=0.018..0.018 rows=1 loops=1,962)

45. 28.197 35.316 ↓ 3.0 3 1,962

Nested Loop (cost=0.85..19.20 rows=1 width=8) (actual time=0.015..0.018 rows=3 loops=1,962)

  • -> Index Scan using ixf03_rqstuid on corrtrkg_t corrtrkg_t_1 (cost=0.43..10.75 rows=1 width=4) (actual time=0.008..0.009rows=1 loops=1,962)
  • Index Cond: (rqst_uid = ceappt_t.ce_appt_uid)
  • Filter: (((rcpnt_typ_cd)::text = 'C'::text) AND ((rqst_typ_cd)::text = 'TRA'::text))
  • Rows Removed by Filter: 4
46. 7.119 7.119 ↓ 2.0 2 2,373

Index Scan using ixf01_barcdtrkg_t_corrtrkg on barcdtrkg_t barcdtrkg_t_1 (cost=0.43..8.45 rows=1 width=12) (actual time=0.002..0.003 rows=2 loops=2,373)

  • Index Cond: (crsp_trkg_uid = corrtrkg_t_1.crsp_trkg_uid)
Planning time : 6.031 ms
Execution time : 335.390 ms