explain.depesz.com

PostgreSQL's explain analyze made readable

Result: d29b : 2

Settings
# exclusive inclusive rows x rows loops node
1. 152.831 709.529 ↓ 1.0 61,568 1

Sort (cost=40,896.48..41,043.12 rows=58,656 width=94) (actual time=691.915..709.529 rows=61,568 loops=1)

  • Sort Key: (COALESCE(pr.product_code_, ''::character varying))
  • Sort Method: external merge Disk: 7088kB
2. 89.994 556.698 ↓ 1.0 61,568 1

Hash Left Join (cost=20,556.48..34,100.93 rows=58,656 width=94) (actual time=316.966..556.698 rows=61,568 loops=1)

  • Hash Cond: ((pr.product_id_)::text = (ypr.product_id_)::text)
3. 13.434 429.987 ↓ 1.0 61,568 1

Hash Left Join (cost=16,877.78..27,108.29 rows=58,656 width=88) (actual time=280.214..429.987 rows=61,568 loops=1)

  • Hash Cond: ((pr.product_id_)::text = (prabc.product_id_)::text)
4. 73.884 416.532 ↓ 1.0 61,568 1

Hash Join (cost=16,871.11..26,881.65 rows=58,656 width=86) (actual time=280.182..416.532 rows=61,568 loops=1)

  • Hash Cond: ((pcilarge.product_id_)::text = (pr.product_id_)::text)
5. 18.095 62.824 ↑ 1.0 61,568 1

Hash Join (cost=16.63..6,681.69 rows=61,729 width=47) (actual time=0.306..62.824 rows=61,568 loops=1)

  • Hash Cond: ((pcilarge.product_category_id_)::text = (pcslarge.product_category_id_)::text)
6. 44.562 44.562 ↑ 1.0 61,568 1

Seq Scan on product_category_info pcilarge (cost=0.00..5,816.29 rows=61,729 width=63) (actual time=0.127..44.562 rows=61,568 loops=1)

  • Filter: ((product_category_type_id_)::text = 'PARTLARGEGROUP'::text)
  • Rows Removed by Filter: 64929
7. 0.101 0.167 ↓ 1.1 357 1

Hash (cost=12.39..12.39 rows=339 width=42) (actual time=0.167..0.167 rows=357 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 27kB
8. 0.066 0.066 ↓ 1.1 357 1

Seq Scan on product_category_setting pcslarge (cost=0.00..12.39 rows=339 width=42) (actual time=0.004..0.066 rows=357 loops=1)

9. 36.082 279.824 ↓ 1.1 61,568 1

Hash (cost=15,104.33..15,104.33 rows=58,172 width=113) (actual time=279.824..279.824 rows=61,568 loops=1)

  • Buckets: 4096 Batches: 4 Memory Usage: 2223kB
10. 90.749 243.742 ↓ 1.1 61,568 1

Hash Join (cost=5,334.34..15,104.33 rows=58,172 width=113) (actual time=59.780..243.742 rows=61,568 loops=1)

  • Hash Cond: ((pcimiddle.product_id_)::text = (pr.product_id_)::text)
11. 28.242 93.519 ↓ 1.0 61,568 1

Hash Join (cost=16.63..6,677.81 rows=61,447 width=40) (actual time=0.241..93.519 rows=61,568 loops=1)

  • Hash Cond: ((pcimiddle.product_category_id_)::text = (pcsmiddle.product_category_id_)::text)
12. 65.142 65.142 ↓ 1.0 61,568 1

Seq Scan on product_category_info pcimiddle (cost=0.00..5,816.29 rows=61,447 width=63) (actual time=0.094..65.142 rows=61,568 loops=1)

  • Filter: ((product_category_type_id_)::text = 'PARTMIDDLEGROUP'::text)
  • Rows Removed by Filter: 64929
13. 0.081 0.135 ↓ 1.1 357 1

Hash (cost=12.39..12.39 rows=339 width=35) (actual time=0.135..0.135 rows=357 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 24kB
14. 0.054 0.054 ↓ 1.1 357 1

Seq Scan on product_category_setting pcsmiddle (cost=0.00..12.39 rows=339 width=35) (actual time=0.002..0.054 rows=357 loops=1)

15. 21.864 59.474 ↑ 1.0 61,568 1

Hash (cost=3,736.74..3,736.74 rows=62,718 width=73) (actual time=59.474..59.474 rows=61,568 loops=1)

  • Buckets: 4096 Batches: 2 Memory Usage: 3233kB
16. 37.610 37.610 ↑ 1.0 61,568 1

Seq Scan on product pr (cost=0.00..3,736.74 rows=62,718 width=73) (actual time=0.572..37.610 rows=61,568 loops=1)

  • Filter: (((site_id_)::text = '0000'::text) AND ((product_classification_id_)::text = 'C059PART'::text))
  • Rows Removed by Filter: 3540
17. 0.000 0.021 ↓ 0.0 0 1

Hash (cost=6.66..6.66 rows=1 width=39) (actual time=0.021..0.021 rows=0 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 0kB
18. 0.002 0.021 ↓ 0.0 0 1

Nested Loop Left Join (cost=0.83..6.66 rows=1 width=39) (actual time=0.021..0.021 rows=0 loops=1)

  • Join Filter: (((abc.site_id_)::text = (prabc.site_id_)::text) AND ((abc.abc_id_)::text = (prabc.abc_id_)::text))
19. 0.019 0.019 ↓ 0.0 0 1

Index Only Scan using product_abc_info_idx01 on product_abc_info prabc (cost=0.55..2.57 rows=1 width=75) (actual time=0.019..0.019 rows=0 loops=1)

  • Index Cond: (site_id_ = 'JA0022'::text)
  • Heap Fetches: 0
20. 0.000 0.000 ↓ 0.0 0

Index Scan using "index_siteId_05" on abc_definition_info abc (cost=0.28..4.07 rows=1 width=40) (never executed)

  • Index Cond: ((site_id_)::text = 'JA0022'::text)
21. 20.212 36.717 ↓ 1.0 63,674 1

Hash (cost=2,323.31..2,323.31 rows=63,631 width=43) (actual time=36.717..36.717 rows=63,674 loops=1)

  • Buckets: 8192 Batches: 2 Memory Usage: 2349kB
22. 16.505 16.505 ↓ 1.0 63,674 1

Seq Scan on yimm_product_info ypr (cost=0.00..2,323.31 rows=63,631 width=43) (actual time=0.007..16.505 rows=63,674 loops=1)