explain.depesz.com

PostgreSQL's explain analyze made readable

Result: GPJl : 3

Settings
# exclusive inclusive rows x rows loops node
1. 144.019 639.194 ↓ 1.1 61,568 1

Sort (cost=40,733.18..40,877.73 rows=57,819 width=94) (actual time=622.376..639.194 rows=61,568 loops=1)

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

Hash Left Join (cost=20,549.03..34,042.41 rows=57,819 width=94) (actual time=262.720..495.175 rows=61,568 loops=1)

  • Hash Cond: ((pr.product_id_)::text = (ypr.product_id_)::text)
3. 13.492 372.059 ↓ 1.1 61,568 1

Hash Left Join (cost=16,870.33..27,088.18 rows=57,819 width=88) (actual time=227.043..372.059 rows=61,568 loops=1)

  • Hash Cond: ((pr.product_id_)::text = (prabc.product_id_)::text)
4. 70.717 358.529 ↓ 1.1 61,568 1

Hash Join (cost=16,863.66..26,864.68 rows=57,819 width=86) (actual time=226.993..358.529 rows=61,568 loops=1)

  • Hash Cond: ((pcilarge.product_id_)::text = (pr.product_id_)::text)
5. 17.338 61.166 ↓ 1.0 61,568 1

Hash Join (cost=16.63..6,679.32 rows=61,562 width=47) (actual time=0.312..61.166 rows=61,568 loops=1)

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

Seq Scan on product_category_info pcilarge (cost=0.00..5,816.21 rows=61,562 width=63) (actual time=0.131..43.653 rows=61,568 loops=1)

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

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

  • Buckets: 1024 Batches: 1 Memory Usage: 27kB
8. 0.094 0.094 ↓ 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.094 rows=357 loops=1)

9. 28.653 226.646 ↓ 1.1 61,568 1

Hash (cost=15,098.97..15,098.97 rows=58,085 width=113) (actual time=226.646..226.646 rows=61,568 loops=1)

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

Hash Join (cost=5,334.34..15,098.97 rows=58,085 width=113) (actual time=57.824..197.993 rows=61,568 loops=1)

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

Hash Join (cost=16.63..6,676.47 rows=61,355 width=40) (actual time=0.210..66.951 rows=61,568 loops=1)

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

Seq Scan on product_category_info pcimiddle (cost=0.00..5,816.21 rows=61,355 width=63) (actual time=0.074..48.581 rows=61,568 loops=1)

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

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

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

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

15. 21.395 57.576 ↑ 1.0 61,568 1

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

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

Seq Scan on product pr (cost=0.00..3,736.74 rows=62,718 width=73) (actual time=0.612..36.181 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.038 ↓ 0.0 0 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 0kB
18. 0.001 0.038 ↓ 0.0 0 1

Nested Loop Left Join (cost=0.83..6.66 rows=1 width=39) (actual time=0.038..0.038 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.037 0.037 ↓ 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.037..0.037 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. 18.692 35.640 ↓ 1.0 63,674 1

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

  • Buckets: 8192 Batches: 2 Memory Usage: 2349kB
22. 16.948 16.948 ↓ 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.948 rows=63,674 loops=1)

Planning time : 3.276 ms
Execution time : 644.852 ms