explain.depesz.com

PostgreSQL's explain analyze made readable

Result: VUlp : 123

Settings
# exclusive inclusive rows x rows loops node
1. 0.015 3,056.197 ↓ 7.0 7 1

Nested Loop Left Join (cost=5.01..13,602.56 rows=1 width=249) (actual time=2,708.153..3,056.197 rows=7 loops=1)

2. 0.024 3,056.154 ↓ 7.0 7 1

Nested Loop Left Join (cost=4.45..13,599.66 rows=1 width=244) (actual time=2,708.146..3,056.154 rows=7 loops=1)

3. 1.445 3,056.067 ↓ 7.0 7 1

Nested Loop Left Join (cost=3.90..13,596.75 rows=1 width=239) (actual time=2,708.131..3,056.067 rows=7 loops=1)

  • Join Filter: ((originfo.party_id_)::text = (partyinfo.party_id_)::text)
  • Rows Removed by Join Filter: 10360
4. 0.117 3,053.481 ↓ 7.0 7 1

Nested Loop (cost=3.90..13,523.45 rows=1 width=258) (actual time=2,708.024..3,053.481 rows=7 loops=1)

  • Join Filter: (((orderinfo.delivery_facility_)::text = (prostosta.facility_id_)::text) AND ((product.product_id_)::text = (prostosta.product_id_)::text))
  • Rows Removed by Join Filter: 48
5. 23.274 2,644.104 ↓ 20.0 20 1

Nested Loop (cost=3.35..3,267.27 rows=1 width=364) (actual time=2,623.218..2,644.104 rows=20 loops=1)

6. 9.764 2,346.880 ↓ 4,214.6 54,790 1

Nested Loop Left Join (cost=2.79..3,229.44 rows=13 width=396) (actual time=0.194..2,346.880 rows=54,790 loops=1)

7. 332.651 2,227.536 ↓ 4,214.6 54,790 1

Nested Loop Left Join (cost=2.51..3,197.73 rows=13 width=356) (actual time=0.186..2,227.536 rows=54,790 loops=1)

  • Join Filter: ((colorinfo.color_id_)::text = (product.color_id_)::text)
  • Rows Removed by Join Filter: 2410760
8. 17.359 1,785.305 ↓ 4,214.6 54,790 1

Nested Loop (cost=2.51..3,187.39 rows=13 width=295) (actual time=0.174..1,785.305 rows=54,790 loops=1)

9. 47.153 1,603.576 ↓ 4,214.6 54,790 1

Nested Loop (cost=2.09..3,153.61 rows=13 width=185) (actual time=0.163..1,603.576 rows=54,790 loops=1)

10. 819.534 1,282.473 ↓ 4,214.6 54,790 1

Nested Loop Left Join (cost=1.54..3,117.06 rows=13 width=104) (actual time=0.147..1,282.473 rows=54,790 loops=1)

  • Join Filter: ((facinfo.facility_id_)::text = (orderinfo.delivery_facility_)::text)
  • Rows Removed by Join Filter: 6520010
11. 12.745 134.199 ↓ 4,214.6 54,790 1

Nested Loop (cost=1.54..3,089.99 rows=13 width=82) (actual time=0.052..134.199 rows=54,790 loops=1)

12. 4.264 60.605 ↓ 42.5 6,761 1

Nested Loop (cost=0.99..1,427.20 rows=159 width=119) (actual time=0.036..60.605 rows=6,761 loops=1)

13. 9.014 9.014 ↓ 42.5 6,761 1

Index Scan using order_info_idx01 on order_info orderinfo (cost=0.42..697.39 rows=159 width=81) (actual time=0.021..9.014 rows=6,761 loops=1)

  • Index Cond: (((site_id_)::text = 'VA2301'::text) AND ((order_category_id_)::text = 'C044ODTYPESO'::text) AND ((serial_item_flag_)::text = '1'::text))
14. 47.327 47.327 ↑ 1.0 1 6,761

Index Scan using pk_sales_order on sales_order salesorder (cost=0.56..4.58 rows=1 width=38) (actual time=0.006..0.007 rows=1 loops=6,761)

  • Index Cond: ((order_id_)::text = (orderinfo.order_id_)::text)
15. 60.849 60.849 ↑ 7.1 8 6,761

Index Only Scan using sales_order_item_idx02 on sales_order_item salordite (cost=0.55..9.89 rows=57 width=68) (actual time=0.006..0.009 rows=8 loops=6,761)

  • Index Cond: (sales_order_id_ = (salesorder.order_id_)::text)
  • Heap Fetches: 54790
16. 328.703 328.740 ↓ 1.0 120 54,790

Materialize (cost=0.00..4.74 rows=116 width=59) (actual time=0.000..0.006 rows=120 loops=54,790)

17. 0.037 0.037 ↓ 1.0 120 1

Seq Scan on facility_info facinfo (cost=0.00..4.16 rows=116 width=59) (actual time=0.004..0.037 rows=120 loops=1)

18. 273.950 273.950 ↑ 1.0 1 54,790

Index Scan using pk_retail_order_item on order_item orderitem (cost=0.56..2.80 rows=1 width=81) (actual time=0.005..0.005 rows=1 loops=54,790)

  • Index Cond: ((order_item_id_)::text = (salordite.order_item_id_)::text)
19. 164.370 164.370 ↑ 1.0 1 54,790

Index Scan using pk_product on product (cost=0.42..2.59 rows=1 width=110) (actual time=0.002..0.003 rows=1 loops=54,790)

  • Index Cond: ((product_id_)::text = (orderitem.product_id_)::text)
20. 109.569 109.580 ↑ 1.0 45 54,790

Materialize (cost=0.00..1.68 rows=45 width=196) (actual time=0.000..0.002 rows=45 loops=54,790)

21. 0.011 0.011 ↑ 1.0 45 1

Seq Scan on color_info colorinfo (cost=0.00..1.45 rows=45 width=196) (actual time=0.004..0.011 rows=45 loops=1)

22. 109.580 109.580 ↑ 1.0 1 54,790

Index Scan using pk_party_info on party_info partyinfo (cost=0.28..2.43 rows=1 width=41) (actual time=0.002..0.002 rows=1 loops=54,790)

  • Index Cond: ((party_id_)::text = (salesorder.customer_id_)::text)
23. 273.950 273.950 ↓ 0.0 0 54,790

Index Scan using order_item_progress_idx01 on order_item_progress boorderitrmproqty (cost=0.56..2.90 rows=1 width=42) (actual time=0.005..0.005 rows=0 loops=54,790)

  • Index Cond: (((order_item_id_)::text = (orderitem.order_item_id_)::text) AND ((order_item_progress_type_id_)::text = 'C041BACKORDERQTY'::text))
  • Filter: (quantity_ > 0::numeric)
24. 409.260 409.260 ↑ 1.0 3 20

Index Only Scan using product_stock_status_idx02 on product_stock_status prostosta (cost=0.55..10,256.14 rows=3 width=78) (actual time=13.817..20.463 rows=3 loops=20)

  • Index Cond: ((product_id_ = (orderitem.product_id_)::text) AND (product_stock_status_type_id_ = 'C071ONHANDQTY'::text) AND (quantity_ > 0::numeric))
  • Heap Fetches: 50
25. 1.141 1.141 ↓ 1.0 1,481 7

Seq Scan on organization_info originfo (cost=0.00..54.80 rows=1,480 width=53) (actual time=0.002..0.163 rows=1,481 loops=7)

26. 0.063 0.063 ↓ 0.0 0 7

Index Scan using order_item_progress_idx01 on order_item_progress alloorderitrmproqty (cost=0.56..2.90 rows=1 width=42) (actual time=0.009..0.009 rows=0 loops=7)

  • Index Cond: (((order_item_id_)::text = (orderitem.order_item_id_)::text) AND ((order_item_progress_type_id_)::text = 'C041ALLOCATEDQTY'::text))
27. 0.028 0.028 ↓ 0.0 0 7

Index Scan using order_item_progress_idx01 on order_item_progress pickorderitrmproqty (cost=0.56..2.90 rows=1 width=42) (actual time=0.004..0.004 rows=0 loops=7)

  • Index Cond: (((order_item_id_)::text = (orderitem.order_item_id_)::text) AND ((order_item_progress_type_id_)::text = 'C041ONSHIPPINGQTY'::text))