explain.depesz.com

PostgreSQL's explain analyze made readable

Result: WT11

Settings
# exclusive inclusive rows x rows loops node
1. 0.025 2.626 ↑ 6.2 14 1

Sort (cost=467.19..467.41 rows=87 width=59) (actual time=2.622..2.626 rows=14 loops=1)

  • Sort Key: mpv.isactive DESC, mpv.validfrom DESC
  • Sort Method: quicksort Memory: 26kB
2. 0.111 2.601 ↑ 6.2 14 1

Nested Loop (cost=112.13..464.39 rows=87 width=59) (actual time=1.775..2.601 rows=14 loops=1)

3. 0.006 0.116 ↑ 1.0 1 1

Nested Loop (cost=2.66..6.04 rows=1 width=12) (actual time=0.077..0.116 rows=1 loops=1)

  • Join Filter: (mp.c_taxcategory_id = tc.c_taxcategory_id)
4. 0.036 0.103 ↑ 1.0 1 1

Hash Join (cost=2.52..5.76 rows=1 width=24) (actual time=0.067..0.103 rows=1 loops=1)

  • Hash Cond: (tx.c_taxcategory_id = mp.c_taxcategory_id)
5. 0.049 0.049 ↓ 1.0 31 1

Seq Scan on c_tax tx (cost=0.00..3.11 rows=30 width=11) (actual time=0.010..0.049 rows=31 loops=1)

  • Filter: (isdefault = 'Y'::bpchar)
  • Rows Removed by Filter: 59
6. 0.003 0.018 ↑ 1.0 1 1

Hash (cost=2.51..2.51 rows=1 width=13) (actual time=0.018..0.018 rows=1 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
7. 0.015 0.015 ↑ 1.0 1 1

Index Scan using m_product_pkey on m_product mp (cost=0.29..2.51 rows=1 width=13) (actual time=0.014..0.015 rows=1 loops=1)

  • Index Cond: (m_product_id = '1050047'::numeric)
8. 0.007 0.007 ↑ 1.0 1 1

Index Only Scan using c_taxcategory_pkey on c_taxcategory tc (cost=0.14..0.27 rows=1 width=16) (actual time=0.006..0.007 rows=1 loops=1)

  • Index Cond: (c_taxcategory_id = tx.c_taxcategory_id)
  • Heap Fetches: 1
9. 0.023 2.374 ↑ 4.4 14 1

Nested Loop Left Join (cost=109.47..434.69 rows=61 width=61) (actual time=1.653..2.374 rows=14 loops=1)

10. 0.014 2.253 ↑ 4.4 14 1

Nested Loop (cost=108.42..368.50 rows=61 width=29) (actual time=1.625..2.253 rows=14 loops=1)

11. 0.003 0.019 ↑ 1.0 1 1

Nested Loop (cost=0.14..3.56 rows=1 width=12) (actual time=0.013..0.019 rows=1 loops=1)

12. 0.010 0.010 ↑ 1.0 1 1

Seq Scan on m_pricelist mpl (cost=0.00..1.19 rows=1 width=13) (actual time=0.007..0.010 rows=1 loops=1)

  • Filter: (m_pricelist_id = '1000001'::numeric)
  • Rows Removed by Filter: 14
13. 0.006 0.006 ↑ 1.0 1 1

Index Scan using c_currency_pkey on c_currency cr (cost=0.14..2.36 rows=1 width=9) (actual time=0.004..0.006 rows=1 loops=1)

  • Index Cond: (c_currency_id = mpl.c_currency_id)
14. 0.149 2.220 ↑ 4.4 14 1

Hash Join (cost=108.27..364.33 rows=61 width=29) (actual time=1.609..2.220 rows=14 loops=1)

  • Hash Cond: (mpp.m_pricelist_version_id = mpv.m_pricelist_version_id)
15. 0.489 0.489 ↓ 1.1 262 1

Index Scan using prodidpp on m_productprice mpp (cost=0.43..255.01 rows=233 width=20) (actual time=0.018..0.489 rows=262 loops=1)

  • Index Cond: (m_product_id = '1050047'::numeric)
16. 0.476 1.582 ↑ 1.0 712 1

Hash (cost=98.94..98.94 rows=712 width=23) (actual time=1.582..1.582 rows=712 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 52kB
17. 1.106 1.106 ↑ 1.0 712 1

Seq Scan on m_pricelist_version mpv (cost=0.00..98.94 rows=712 width=23) (actual time=0.006..1.106 rows=712 loops=1)

  • Filter: (m_pricelist_id = '1000001'::numeric)
  • Rows Removed by Filter: 2003
18. 0.014 0.098 ↓ 0.0 0 14

Subquery Scan on uomc (cost=1.05..1.07 rows=1 width=48) (actual time=0.007..0.007 rows=0 loops=14)

  • Filter: ((uomc.m_product_id = '1050047'::numeric) AND (uomc.m_product_id = mpp.m_product_id))
19. 0.014 0.084 ↓ 0.0 0 14

Limit (cost=1.05..1.06 rows=1 width=48) (actual time=0.006..0.006 rows=0 loops=14)

20. 0.042 0.070 ↓ 0.0 0 14

Sort (cost=1.05..1.06 rows=1 width=48) (actual time=0.005..0.005 rows=0 loops=14)

  • Sort Key: c_uom_conversion.dividerate DESC
  • Sort Method: quicksort Memory: 25kB
21. 0.028 0.028 ↓ 0.0 0 14

Seq Scan on c_uom_conversion (cost=0.00..1.04 rows=1 width=48) (actual time=0.002..0.002 rows=0 loops=14)

  • Filter: ((isactive = 'Y'::bpchar) AND (m_product_id = mpp.m_product_id))
  • Rows Removed by Filter: 3