explain.depesz.com

PostgreSQL's explain analyze made readable

Result: cjbh

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 214,203.551 ↓ 125.5 13,181 1

Gather (cost=1,155.42..484,214.70 rows=105 width=551) (actual time=80.210..214,203.551 rows=13,181 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 4.090 2,624.770 ↓ 99.9 4,394 3 / 3

Nested Loop Left Join (cost=155.42..14,054.96 rows=44 width=395) (actual time=23.904..2,624.770 rows=4,394 loops=3)

3. 4.126 2,212.069 ↓ 102.2 4,394 3 / 3

Nested Loop Left Join (cost=155.00..14,027.48 rows=43 width=341) (actual time=23.174..2,212.069 rows=4,394 loops=3)

4. 11.343 1,813.803 ↓ 101.8 4,379 3 / 3

Nested Loop (cost=154.58..14,000.09 rows=43 width=316) (actual time=22.471..1,813.803 rows=4,379 loops=3)

5. 5.069 1,386.423 ↓ 101.8 4,379 3 / 3

Nested Loop (cost=154.16..13,959.31 rows=43 width=280) (actual time=21.711..1,386.423 rows=4,379 loops=3)

6. 6.679 802.837 ↓ 14.5 6,357 3 / 3

Hash Join (cost=153.73..13,310.76 rows=437 width=79) (actual time=16.544..802.837 rows=6,357 loops=3)

  • Hash Cond: (pmtrqstpkg_t.initg_org_uid = organization_t.org_uid)
7. 24.587 784.114 ↓ 5.3 24,434 3 / 3

Merge Join (cost=1.07..13,145.90 rows=4,643 width=80) (actual time=2.406..784.114 rows=24,434 loops=3)

  • Merge Cond: (pmtrqstpkg_t.rqst_uid = ceappt_t.ce_appt_uid)
8. 697.781 697.781 ↑ 1.2 24,434 3 / 3

Parallel Index Scan using ixn01_pmtrqstpkg_t on pmtrqstpkg_t (cost=0.42..40,321.31 rows=30,260 width=55) (actual time=0.403..697.781 rows=24,434 loops=3)

  • Filter: ((rqst_typ_cd)::text = 'CE'::text)
  • Rows Removed by Filter: 184073
9. 61.746 61.746 ↑ 2.8 26,258 3 / 3

Index Scan using ceappt_pkey on ceappt_t (cost=0.29..3,561.52 rows=73,326 width=25) (actual time=0.014..61.746 rows=26,258 loops=3)

10. 0.113 12.044 ↑ 1.0 500 3 / 3

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

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

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

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

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

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

Index Scan using ixf02_pmtrqstpkguid on pmtrqst_t (cost=0.42..1.47 rows=1 width=213) (actual time=0.084..0.091 rows=1 loops=19,072)

  • 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. 416.037 416.037 ↑ 1.0 1 13,138 / 3

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

  • Index Cond: (dcps_case_uid = pmtrqst_t.dcps_case_uid)
15. 394.140 394.140 ↓ 0.0 0 13,138 / 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.089..0.090 rows=0 loops=13,138)

  • 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
16. 408.611 408.611 ↑ 1.0 1 13,181 / 3

Index Scan using ixf01_clntaddr on clntaddr_t (cost=0.42..0.63 rows=1 width=58) (actual time=0.085..0.093 rows=1 loops=13,181)

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

SubPlan (for Gather)

18. 74.954 1,476.272 ↑ 1.0 1 13,181

Nested Loop Left Join (cost=0.42..9.71 rows=1 width=32) (actual time=0.096..0.112 rows=1 loops=13,181)

  • Join Filter: ((caseclm_t.clm_typ)::text = (t2clmcd_t.cd)::text)
  • Rows Removed by Join Filter: 11
19. 1,384.005 1,384.005 ↑ 1.0 1 13,181

Index Scan using ixf01_caseclm on caseclm_t (cost=0.42..8.44 rows=1 width=3) (actual time=0.091..0.105 rows=1 loops=13,181)

  • Index Cond: (dcps_case_uid = dcpscase_t.dcps_case_uid)
20. 17.313 17.313 ↑ 1.5 8 17,313

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

21. 39.543 206,915.338 ↑ 1.0 1 13,181

Aggregate (cost=4,403.59..4,403.60 rows=1 width=8) (actual time=15.698..15.698 rows=1 loops=13,181)

22. 206,875.795 206,875.795 ↑ 1.0 1 13,181

Seq Scan on ceappthist_t (cost=0.00..4,403.59 rows=1 width=8) (actual time=11.264..15.695 rows=1 loops=13,181)

  • Filter: ((ce_appt_uid = ceappt_t.ce_appt_uid) AND ((appt_stus_cd)::text = (ceappt_t.appt_stus_cd)::text))
  • Rows Removed by Filter: 142238
23. 13.181 316.344 ↑ 1.0 1 13,181

Limit (cost=1.14..17.63 rows=1 width=6) (actual time=0.023..0.024 rows=1 loops=13,181)

24. 22.890 303.163 ↑ 1.0 1 13,181

Nested Loop (cost=1.14..17.63 rows=1 width=6) (actual time=0.022..0.023 rows=1 loops=13,181)

25. 13.181 224.077 ↑ 1.0 1 13,181

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

  • Join Filter: (stcatlgprod_t.prod_uid = prodrlshp_t.rltd_prod_uid)
26. 26.362 144.991 ↑ 1.0 1 13,181

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

27. 65.905 65.905 ↑ 1.0 1 13,181

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

  • Index Cond: (st_catlg_prod_uid = pmtrqst_t.st_catlg_prod_uid)
28. 52.724 52.724 ↑ 1.0 1 13,181

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

  • Index Cond: (prod_uid = stcatlgprod_t.prod_uid)
  • Heap Fetches: 13181
29. 65.905 65.905 ↑ 5.0 1 13,181

Index Scan using prodrlshp_t_rltd_prod_uid_idx on prodrlshp_t (cost=0.29..0.57 rows=5 width=8) (actual time=0.004..0.005 rows=1 loops=13,181)

  • 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
30. 56.196 56.196 ↑ 1.0 1 18,732

Index Scan using prod_uid_pkey on product_t product_t_1 (cost=0.28..0.39 rows=1 width=10) (actual time=0.003..0.003 rows=1 loops=18,732)

  • Index Cond: (prod_uid = prodrlshp_t.prod_uid)
  • Filter: ((prod_nmspace_cd)::text = 'OH'::text)
  • Rows Removed by Filter: 0
31. 13.181 237.258 ↑ 1.0 1 13,181

Limit (cost=1.43..17.94 rows=1 width=6) (actual time=0.017..0.018 rows=1 loops=13,181)

32. 20.811 224.077 ↑ 1.0 1 13,181

Nested Loop (cost=1.43..17.94 rows=1 width=6) (actual time=0.017..0.017 rows=1 loops=13,181)

33. 26.362 184.534 ↑ 1.0 1 13,181

Nested Loop (cost=1.15..17.55 rows=1 width=4) (actual time=0.014..0.014 rows=1 loops=13,181)

34. 13.181 131.810 ↑ 1.0 1 13,181

Nested Loop (cost=0.86..16.95 rows=1 width=8) (actual time=0.010..0.010 rows=1 loops=13,181)

35. 26.362 105.448 ↑ 1.0 1 13,181

Nested Loop (cost=0.58..16.61 rows=1 width=4) (actual time=0.008..0.008 rows=1 loops=13,181)

36. 65.905 65.905 ↑ 1.0 1 13,181

Index Scan using ceapptitem_pkey on ceapptitem_t (cost=0.29..8.31 rows=1 width=4) (actual time=0.005..0.005 rows=1 loops=13,181)

  • Index Cond: (ce_appt_itm_uid = pmtrqst_t.pmtrqst_li_id)
37. 13.181 13.181 ↑ 1.0 1 13,181

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.001..0.001 rows=1 loops=13,181)

  • Index Cond: (st_catlg_prod_uid = ceapptitem_t.st_catlg_prod_uid)
38. 13.181 13.181 ↑ 1.0 1 13,181

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,181)

  • Index Cond: (prod_uid = stcatlgprod_t_1.prod_uid)
  • Heap Fetches: 13181
39. 26.362 26.362 ↑ 5.0 1 13,181

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,181)

  • 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
40. 18.732 18.732 ↑ 1.0 1 18,732

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=18,732)

  • Index Cond: (prod_uid = prodrlshp_t_1.prod_uid)
  • Filter: ((prod_nmspace_cd)::text = 'OH'::text)
  • Rows Removed by Filter: 0
41. 13.181 5,087.866 ↑ 1.0 1 13,181

Aggregate (cost=19.20..19.21 rows=1 width=8) (actual time=0.386..0.386 rows=1 loops=13,181)

42. 18.821 5,074.685 ↑ 1.0 1 13,181

Nested Loop (cost=0.85..19.19 rows=1 width=8) (actual time=0.182..0.385 rows=1 loops=13,181)

43. 4,112.472 4,112.472 ↑ 1.0 1 13,181

Index Scan using ixf03_rqstuid on corrtrkg_t (cost=0.43..10.74 rows=1 width=4) (actual time=0.138..0.312 rows=1 loops=13,181)

  • 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
44. 943.392 943.392 ↑ 1.0 1 19,654

Index Scan using ixf01_barcdtrkg_t_corrtrkg on barcdtrkg_t (cost=0.43..8.45 rows=1 width=12) (actual time=0.048..0.048 rows=1 loops=19,654)

  • Index Cond: (crsp_trkg_uid = corrtrkg_t.crsp_trkg_uid)
Planning time : 68.359 ms
Execution time : 214,207.534 ms