explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 7PwR : Optimization for: plan #1fQb

Settings

Optimization path:

# exclusive inclusive rows x rows loops node
1. 0.000 819.518 ↓ 130.0 13,517 1

Gather (cost=1,155.12..22,849.58 rows=104 width=550) (actual time=2.733..819.518 rows=13,517 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 5.009 331.219 ↓ 104.8 4,506 3 / 3

Nested Loop Left Join (cost=155.12..14,226.71 rows=43 width=394) (actual time=2.627..331.219 rows=4,506 loops=3)

3. 20.497 308.187 ↓ 104.8 4,506 3 / 3

Nested Loop Left Join (cost=154.69..14,199.23 rows=43 width=340) (actual time=2.615..308.187 rows=4,506 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.004 rows=0 loops=13474)
4. 9.206 287.690 ↓ 104.4 4,491 3 / 3

Nested Loop (cost=154.27..14,171.84 rows=43 width=315) (actual time=2.602..287.690 rows=4,491 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. 5.150 265.010 ↓ 104.4 4,491 3 / 3

Nested Loop (cost=153.85..14,130.99 rows=43 width=279) (actual time=2.588..265.010 rows=4,491 loops=3)

6. 5.210 220.910 ↓ 14.8 6,492 3 / 3

Hash Join (cost=153.43..13,483.91 rows=439 width=79) (actual time=1.029..220.910 rows=6,492 loops=3)

  • Hash Cond: (pmtrqstpkg_t.initg_org_uid = organization_t.org_uid)
7. 27.883 215.347 ↓ 5.3 24,789 3 / 3

Merge Join (cost=0.77..13,318.99 rows=4,667 width=80) (actual time=0.594..215.347 rows=24,789 loops=3)

  • Merge Cond: (pmtrqstpkg_t.rqst_uid = ceappt_t.ce_appt_uid)
8. 166.663 166.663 ↑ 1.3 24,789 3 / 3

Parallel Index Scan using ixn01_pmtrqstpkg_t on pmtrqstpkg_t (cost=0.42..41,012.50 rows=31,002 width=55) (actual time=0.018..166.663 rows=24,789 loops=3)

  • Filter: ((rqst_typ_cd)::text = 'CE'::text)
  • Rows Removed by Filter: 186768
9. 20.801 20.801 ↑ 2.1 35,199 3 / 3

Index Scan using ceappt_pkey on ceappt_t (cost=0.29..3,606.76 rows=74,395 width=25) (actual time=0.017..20.801 rows=35,199 loops=3)

10. 0.110 0.353 ↑ 1.0 500 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 28kB
11. 0.187 0.243 ↑ 1.0 500 3 / 3

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

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

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

  • Index Cond: ((st_cd)::text = 'OH'::text)
13. 38.950 38.950 ↑ 1.0 1 19,475 / 3

Index Scan using ixf02_pmtrqstpkguid on pmtrqst_t (cost=0.42..1.46 rows=1 width=212) (actual time=0.005..0.006 rows=1 loops=19,475)

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

Index Scan using ixpk_dcpscase_t on dcpscase_t (cost=0.42..0.95 rows=1 width=36) (actual time=0.003..0.003 rows=1 loops=13,474)

  • Index Cond: (dcps_case_uid = pmtrqst_t.dcps_case_uid)
15. 18.023 18.023 ↑ 1.0 1 13,517 / 3

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

  • 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. 36.334 108.136 ↑ 1.0 1 13,517

Nested Loop Left Join (cost=0.42..9.71 rows=1 width=32) (actual time=0.007..0.008 rows=1 loops=13,517)

  • Join Filter: ((caseclm_t.clm_typ)::text = (t2clmcd_t.cd)::text)
  • Rows Removed by Join Filter: 11
18. 54.068 54.068 ↑ 1.0 1 13,517

Index Scan using ixf01_caseclm on caseclm_t (cost=0.42..8.44 rows=1 width=3) (actual time=0.003..0.004 rows=1 loops=13,517)

  • Index Cond: (dcps_case_uid = dcpscase_t.dcps_case_uid)
19. 17.734 17.734 ↑ 1.3 9 17,734

Seq Scan on t2clmcd_t (cost=0.00..1.12 rows=12 width=4) (actual time=0.001..0.001 rows=9 loops=17,734)

20. 54.068 54.068 ↑ 1.0 1 13,517

Aggregate (cost=8.54..8.55 rows=1 width=8) (actual time=0.004..0.004 rows=1 loops=13,517)

  • -> Index Scan using ceappthist_t_ce_appt_uid_idx on ceappthist_t (cost=0.42..8.53 rows=1 width=8)(actual time=0.003..0.003 rows=1 loops=13517)
  • 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
21. 13.517 148.687 ↑ 1.0 1 13,517

Limit (cost=1.14..17.63 rows=1 width=6) (actual time=0.010..0.011 rows=1 loops=13,517)

22. 2.047 135.170 ↑ 1.0 1 13,517

Nested Loop (cost=1.14..17.63 rows=1 width=6) (actual time=0.010..0.010 rows=1 loops=13,517)

23. 0.000 94.619 ↑ 1.0 1 13,517

Nested Loop (cost=0.85..17.24 rows=1 width=4) (actual time=0.007..0.007 rows=1 loops=13,517)

  • Join Filter: (stcatlgprod_t.prod_uid = prodrlshp_t.rltd_prod_uid)
24. 27.034 54.068 ↑ 1.0 1 13,517

Nested Loop (cost=0.57..16.60 rows=1 width=8) (actual time=0.004..0.004 rows=1 loops=13,517)

25. 13.517 13.517 ↑ 1.0 1 13,517

Index Scan using catalog_product_uid_pkey on stcatlgprod_t (cost=0.29..8.30 rows=1 width=4) (actual time=0.001..0.001 rows=1 loops=13,517)

  • Index Cond: (st_catlg_prod_uid = pmtrqst_t.st_catlg_prod_uid)
26. 13.517 13.517 ↑ 1.0 1 13,517

Index Only Scan using prod_uid_pkey on product_t (cost=0.28..8.30 rows=1 width=4) (actual time=0.001..0.001 rows=1 loops=13,517)

  • Index Cond: (prod_uid = stcatlgprod_t.prod_uid)
  • Heap Fetches: 13517
27. 40.551 40.551 ↑ 5.0 1 13,517

Index Scan using prodrlshp_t_rltd_prod_uid_idx on prodrlshp_t (cost=0.29..0.57 rows=5 width=8) (actual time=0.002..0.003 rows=1 loops=13,517)

  • 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))
  • Rows Removed by Filter: 0
28. 38.504 38.504 ↑ 1.0 1 19,252

Index Scan using prod_uid_pkey on product_t product_t_1 (cost=0.28..0.39 rows=1 width=10) (actual time=0.002..0.002 rows=1 loops=19,252)

  • Index Cond: (prod_uid = prodrlshp_t.prod_uid)
  • Filter: ((prod_nmspace_cd)::text = 'OH'::text)
  • Rows Removed by Filter: 0
29. 27.034 189.238 ↑ 1.0 1 13,517

Limit (cost=1.55..18.07 rows=1 width=6) (actual time=0.013..0.014 rows=1 loops=13,517)

30. 7.782 162.204 ↑ 1.0 1 13,517

Nested Loop (cost=1.55..18.07 rows=1 width=6) (actual time=0.012..0.012 rows=1 loops=13,517)

31. 13.517 135.170 ↑ 1.0 1 13,517

Nested Loop (cost=1.27..17.67 rows=1 width=4) (actual time=0.009..0.010 rows=1 loops=13,517)

32. 13.517 94.619 ↑ 1.0 1 13,517

Nested Loop (cost=0.98..17.08 rows=1 width=8) (actual time=0.007..0.007 rows=1 loops=13,517)

33. 13.517 67.585 ↑ 1.0 1 13,517

Nested Loop (cost=0.70..16.74 rows=1 width=4) (actual time=0.005..0.005 rows=1 loops=13,517)

34. 27.034 27.034 ↑ 1.0 1 13,517

Index Scan using ceapptitem_pkey on ceapptitem_t (cost=0.42..8.44 rows=1 width=4) (actual time=0.002..0.002 rows=1 loops=13,517)

  • Index Cond: (ce_appt_itm_uid = pmtrqst_t.pmtrqst_li_id)
35. 27.034 27.034 ↑ 1.0 1 13,517

Index Scan using catalog_product_uid_pkey on stcatlgprod_t stcatlgprod_t_1 (cost=0.29..8.30 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=13,517)

  • Index Cond: (st_catlg_prod_uid = ceapptitem_t.st_catlg_prod_uid)
36. 13.517 13.517 ↑ 1.0 1 13,517

Index Only Scan using prod_uid_pkey on product_t product_t_2 (cost=0.28..0.34 rows=1 width=4) (actual time=0.001..0.001 rows=1 loops=13,517)

  • Index Cond: (prod_uid = stcatlgprod_t_1.prod_uid)
  • Heap Fetches: 13517
37. 27.034 27.034 ↑ 5.0 1 13,517

Index Scan using prodrlshp_t_rltd_prod_uid_idx on prodrlshp_t prodrlshp_t_1 (cost=0.29..0.54 rows=5 width=8) (actual time=0.002..0.002 rows=1 loops=13,517)

  • 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))
  • Rows Removed by Filter: 0
38. 19.252 19.252 ↑ 1.0 1 19,252

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

  • Index Cond: (prod_uid = prodrlshp_t_1.prod_uid)
  • Filter: ((prod_nmspace_cd)::text = 'OH'::text)
  • Rows Removed by Filter: 0
39. 0.000 148.687 ↑ 1.0 1 13,517

Aggregate (cost=19.23..19.24 rows=1 width=8) (actual time=0.011..0.011 rows=1 loops=13,517)

40. 27.365 148.687 ↑ 1.0 1 13,517

Nested Loop (cost=0.85..19.23 rows=1 width=8) (actual time=0.007..0.011 rows=1 loops=13,517)

41. 81.102 81.102 ↑ 1.0 1 13,517

Index Scan using ixf03_rqstuid on corrtrkg_t (cost=0.43..10.77 rows=1 width=4) (actual time=0.004..0.006 rows=1 loops=13,517)

  • 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: 4
42. 40.220 40.220 ↑ 1.0 1 20,110

Index Scan using ixf01_barcdtrkg_t_corrtrkg on barcdtrkg_t (cost=0.43..8.45 rows=1 width=12) (actual time=0.002..0.002 rows=1 loops=20,110)

  • Index Cond: (crsp_trkg_uid = corrtrkg_t.crsp_trkg_uid)
Planning time : 5.677 ms
Execution time : 820.690 ms