explain.depesz.com

PostgreSQL's explain analyze made readable

Result: pH6b : 111

Settings
# exclusive inclusive rows x rows loops node
1. 134.927 607.687 ↓ 1.1 61,568 1

Sort (cost=40,207.16..40,344.70 rows=55,017 width=94) (actual time=592.932..607.687 rows=61,568 loops=1)

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

Hash Left Join (cost=20,484.09..33,860.23 rows=55,017 width=94) (actual time=257.546..472.760 rows=61,568 loops=1)

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

Hash Left Join (cost=16,805.39..27,027.68 rows=55,017 width=88) (actual time=224.985..360.993 rows=61,568 loops=1)

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

Hash Join (cost=16,798.72..26,814.68 rows=55,017 width=86) (actual time=224.939..347.565 rows=61,568 loops=1)

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

Hash Join (cost=16.63..6,681.81 rows=61,743 width=47) (actual time=0.336..59.608 rows=61,568 loops=1)

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

Seq Scan on product_category_info pcilarge (cost=0.00..5,816.21 rows=61,743 width=63) (actual time=0.144..41.877 rows=61,568 loops=1)

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

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

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

9. 26.777 224.553 ↓ 1.1 61,568 1

Hash (cost=15,036.91..15,036.91 rows=58,015 width=113) (actual time=224.553..224.553 rows=61,568 loops=1)

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

Hash Join (cost=5,287.64..15,036.91 rows=58,015 width=113) (actual time=64.866..197.776 rows=61,568 loops=1)

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

Hash Join (cost=16.63..6,676.65 rows=61,368 width=40) (actual time=0.206..69.710 rows=61,568 loops=1)

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

Seq Scan on product_category_info pcimiddle (cost=0.00..5,816.21 rows=61,368 width=63) (actual time=0.078..50.918 rows=61,568 loops=1)

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

Hash (cost=12.39..12.39 rows=339 width=35) (actual time=0.124..0.124 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. 22.601 64.611 ↓ 1.0 61,568 1

Hash (cost=3,719.62..3,719.62 rows=61,551 width=73) (actual time=64.611..64.611 rows=61,568 loops=1)

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

Seq Scan on product pr (cost=0.00..3,719.62 rows=61,551 width=73) (actual time=0.695..42.010 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.035 ↓ 0.0 0 1

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

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

Nested Loop Left Join (cost=0.83..6.66 rows=1 width=39) (actual time=0.035..0.035 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.033 0.033 ↓ 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.033..0.033 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. 16.518 32.527 ↓ 1.0 63,674 1

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

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

Planning time : 3.651 ms
Execution time : 612.952 ms