explain.depesz.com

PostgreSQL's explain analyze made readable

Result: pcu5 : bb

Settings
# exclusive inclusive rows x rows loops node
1. 0.001 14,458.162 ↑ 25.0 4 1

Limit (cost=16,781.16..16,795.66 rows=100 width=2,415) (actual time=14,457.901..14,458.162 rows=4 loops=1)

  • WHEN ((obawo_task0_.behaveasgroup = 'N'::bpchar) AND (obawo_task0_.behaveasgroupwithri = 'N'::bpchar)) THEN obawo_task0_.obawo_task_id ELSE COALESCE(obawo_task0_.obawo
  • THEN obawo_task0_.m_product_id ELSE NULL::character varying END), (CASE WHEN ((obawo_task0_.behaveasgroup = 'N'::bpchar) AND (obawo_task0_.behaveasgroupwithri = 'N'::b
2. 0.250 14,458.161 ↑ 185.8 4 1

Unique (cost=16,781.16..16,888.89 rows=743 width=2,415) (actual time=14,457.901..14,458.161 rows=4 loops=1)

3. 2.206 14,457.911 ↑ 5.4 137 1

Sort (cost=16,781.16..16,783.01 rows=743 width=2,415) (actual time=14,457.899..14,457.911 rows=137 loops=1)

  • Sort Key: (CASE WHEN ((obawo_task0_.behaveasgroup = 'N'::bpchar) AND (obawo_task0_.behaveasgroupwithri = 'N'::bpchar)) THEN obawo_task0_.priority ELSE ob
  • Sort Method: quicksort Memory: 95kB
4. 14,393.598 14,455.705 ↑ 5.4 137 1

Hash Left Join (cost=1,182.55..16,745.73 rows=743 width=2,415) (actual time=112.473..14,455.705 rows=137 loops=1)

  • Hash Cond: ((product25_.m_attributeset_id)::text = (attributes26_.m_attributeset_id)::text)
5. 0.287 61.972 ↑ 5.4 137 1

Hash Left Join (cost=1,160.84..15,659.57 rows=743 width=2,989) (actual time=6.703..61.972 rows=137 loops=1)

  • Hash Cond: ((obawo_task0_.m_product_id)::text = (product25_.m_product_id)::text)
6. 0.390 60.731 ↑ 5.4 137 1

Nested Loop Left Join (cost=966.28..15,463.06 rows=743 width=2,956) (actual time=5.734..60.731 rows=137 loops=1)

7. 0.277 59.793 ↑ 5.4 137 1

Hash Left Join (cost=966.14..15,344.55 rows=743 width=2,896) (actual time=5.721..59.793 rows=137 loops=1)

  • Hash Cond: ((obawo_task0_.m_product_id)::text = (product23_.m_product_id)::text)
8. 0.285 58.691 ↑ 5.4 137 1

Hash Left Join (cost=771.58..15,148.04 rows=743 width=2,874) (actual time=4.883..58.691 rows=137 loops=1)

  • Hash Cond: ((obawo_task0_.m_product_id)::text = (product22_.m_product_id)::text)
9. 0.185 57.303 ↑ 5.4 137 1

Nested Loop Anti Join (cost=577.02..14,951.53 rows=743 width=2,763) (actual time=3.763..57.303 rows=137 loops=1)

  • Join Filter: ((obawo_erro27_.obawo_task_id)::text = (obawo_task0_.obawo_task_id)::text)
10. 0.271 57.118 ↑ 5.4 137 1

Nested Loop Left Join (cost=576.88..14,920.86 rows=743 width=2,763) (actual time=3.760..57.118 rows=137 loops=1)

11. 0.274 56.710 ↑ 5.4 137 1

Hash Left Join (cost=576.74..14,793.66 rows=743 width=2,763) (actual time=3.753..56.710 rows=137 loops=1)

  • Hash Cond: ((obawo_task0_.confirmed_m_refinventory_id)::text = (materialmg16_.m_refinventory_id)::text)
12. 0.277 55.822 ↑ 5.4 137 1

Hash Left Join (cost=463.29..14,678.26 rows=743 width=2,754) (actual time=3.131..55.822 rows=137 loops=1)

  • Hash Cond: ((obawo_task0_.expected_m_refinventory_id)::text = (materialmg15_.m_refinventory_id)::text)
13. 0.286 54.869 ↑ 5.4 137 1

Hash Left Join (cost=349.84..14,562.86 rows=743 width=2,745) (actual time=2.446..54.869 rows=137 loops=1)

  • Hash Cond: ((obawo_task0_.obawo_internal_routing_id)::text = (obawo_inte18_.obawo_internal_routing_id)::text)
14. 0.294 54.561 ↑ 5.4 137 1

Hash Left Join (cost=347.23..14,550.03 rows=743 width=2,696) (actual time=2.418..54.561 rows=137 loops=1)

  • Hash Cond: ((obawo_task0_.obawo_internal_routing_id)::text = (obawo_inte20_.obawo_internal_routing_id)::text)
15. 0.308 54.239 ↑ 5.4 137 1

Nested Loop (cost=344.61..14,537.20 rows=743 width=2,614) (actual time=2.382..54.239 rows=137 loops=1)

  • Join Filter: ((obawo_task13_.obawo_base_task_type_id)::text = (obawo_base14_.obawo_base_task_type_id)::text)
  • Rows Removed by Join Filter: 274
16. 0.409 53.794 ↑ 5.4 137 1

Nested Loop Left Join (cost=344.61..14,492.29 rows=743 width=2,378) (actual time=2.375..53.794 rows=137 loops=1)

17. 0.416 38.726 ↑ 5.4 137 1

Nested Loop Left Join (cost=344.19..8,471.51 rows=743 width=2,326) (actual time=2.350..38.726 rows=137 loops=1)

18. 0.274 34.063 ↑ 5.4 137 1

Hash Join (cost=343.91..8,251.55 rows=743 width=2,317) (actual time=2.335..34.063 rows=137 loops=1)

  • Hash Cond: ((obawo_task0_.obawo_task_type_id)::text = (obawo_task13_.obawo_task_type_id)::text)
19. 0.263 33.754 ↑ 5.4 137 1

Hash Left Join (cost=341.08..8,246.54 rows=743 width=1,812) (actual time=2.293..33.754 rows=137 loops=1)

  • Hash Cond: ((obawo_task0_.obawo_internal_routing_id)::text = (obawo_inte12_.obawo_internal_routing_id)::text)
20. 0.634 33.477 ↓ 0.0 137 1

Nested Loop Left Join (cost=339.74..8242.70 rows=743 width=1576 (cost=0..0 rows=0 width=0) (actual time=2.270..33.477 rows=137 loops=1)

21. 0.245 7.361 ↓ 0.0 137 1

Hash Left Join (cost=339.32..2451.78 rows=743 width=1576 (cost=0..0 rows=0 width=0) (actual time=2.246..7.361 rows=137 loops=1)

  • Hash Cond: ((obawo_task0_.expected_locator_from_id)::text = (locator6_.m_locator_id)::text)
22. 0.278 7.107 ↓ 0.0 137 1

Hash Left Join (cost=337.96..2447.96 rows=743 width=1351 (cost=0..0 rows=0 width=0) (actual time=2.230..7.107 rows=137 loops=1)

  • Hash Cond: ((obawo_task0_.expected_locator_to_id)::text = (locator5_.m_locator_id)::text)
23. 0.293 6.813 ↑ 5.4 137 1

Hash Left Join (cost=336.60..2,444.13 rows=743 width=1,175) (actual time=2.197..6.813 rows=137 loops=1)

  • Hash Cond: ((obawo_task0_.obawo_batchoftasks_id)::text = (obawo_batc2_.obawo_batchoftasks_id)::text)
24. 0.196 4.901 ↑ 5.4 137 1

Hash Left Join (cost=109.27..2,214.86 rows=743 width=1,166) (actual time=0.564..4.901 rows=137 loops=1)

  • Hash Cond: ((obawo_task0_.obawo_receptionlist_id)::text = (obawo_rece1_.obawo_receptionlist_id)::text)
25. 0.349 4.703 ↑ 5.4 137 1

Hash Left Join (cost=97.92..2,201.56 rows=743 width=990) (actual time=0.555..4.703 rows=137 loops=1)

  • Hash Cond: ((obawo_task0_.obawo_pickinglist_id)::text = (obawo_pick3_.obawo_pickinglist_id)::text)
26. 3.836 3.836 ↑ 5.4 137 1

Index Scan using obawo_task_status_ix on obawo_task obawo_task0_ (cost=0.42..2,101.24 rows=743 width=846) (actual time=0.029..3.836 rows=137 loops=1)

  • Index Cond: ((status)::text = 'AV'::text)
  • Filter: (((ad_user_id)::text = '100'::text) AND ((m_warehouse_id)::text = 'FCA81F56E9E643E096E86F5F379459FB'::text) AND ((obawo_receptionlist_id IS NULL) OR ((obawo_receptionlist_id)::text = ANY ('{3B4350AE39A64FA5A6846856E49810AC,4749FBD65E524807BABA3745FD27984C,E68EAFE01FA64637B43DD34558E804BE,EFDDA798E48F43D69FEC679B63477913}'::text[]))))
  • Rows Removed by Filter: 852
27. 0.008 0.518 ↑ 1.0 16 1

Hash (cost=97.30..97.30 rows=16 width=210) (actual time=0.518..0.518 rows=16 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
28. 0.197 0.510 ↑ 1.0 16 1

Hash Right Join (cost=1.36..97.30 rows=16 width=210) (actual time=0.025..0.510 rows=16 loops=1)

  • Hash Cond: ((materialmg4_.m_refinventory_id)::text = (obawo_pick3_.m_refinventory_id)::text)
29. 0.299 0.299 ↑ 1.0 2,020 1

Seq Scan on m_refinventory materialmg4_ (cost=0.00..88.20 rows=2,020 width=42) (actual time=0.005..0.299 rows=2,020 loops=1)

30. 0.006 0.014 ↑ 1.0 16 1

Hash (cost=1.16..1.16 rows=16 width=250) (actual time=0.013..0.014 rows=16 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
31. 0.008 0.008 ↑ 1.0 16 1

Seq Scan on obawo_pickinglist obawo_pick3_ (cost=0.00..1.16 rows=16 width=250) (actual time=0.006..0.008 rows=16 loops=1)

32. 0.001 0.002 ↓ 0.0 0 1

Hash (cost=10.60..10.60 rows=60 width=176) (actual time=0.002..0.002 rows=0 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
33. 0.001 0.001 ↓ 0.0 0 1

Seq Scan on obawo_receptionlist obawo_rece1_ (cost=0.00..10.60 rows=60 width=176) (actual time=0.001..0.001 rows=0 loops=1)

34. 0.686 1.619 ↓ 0.0 4,059 1

Hash (cost=176.59..176.59 rows=4059 width=42 (cost=0..0 rows=0 width=0) (actual time=1.619..1.619 rows=4,059 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 350kB
35. 0.933 0.933 ↑ 1.0 4,059 1

Seq Scan on obawo_batchoftasks obawo_batc2_ (cost=0.00..176.59 rows=4,059 width=42) (actual time=0.006..0.933 rows=4,059 loops=1)

36. 0.007 0.016 ↑ 1.0 16 1

Hash (cost=1.16..1.16 rows=16 width=258) (actual time=0.016..0.016 rows=16 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
37. 0.009 0.009 ↑ 1.0 16 1

Seq Scan on m_locator locator5_ (cost=0.00..1.16 rows=16 width=258) (actual time=0.006..0.009 rows=16 loops=1)

38. 0.005 0.009 ↑ 1.0 16 1

Hash (cost=1.16..1.16 rows=16 width=258) (actual time=0.009..0.009 rows=16 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
39. 0.004 0.004 ↑ 1.0 16 1

Seq Scan on m_locator locator6_ (cost=0.00..1.16 rows=16 width=258) (actual time=0.002..0.004 rows=16 loops=1)

40. 25.482 25.482 ↑ 1.0 1 137

Index Scan using m_storage_detail_key on m_storage_detail materialmg9_ (cost=0.42..7.79 rows=1 width=66) (actual time=0.186..0.186 rows=1 loops=137)

  • Index Cond: ((obawo_task0_.m_storage_detail_id)::text = (m_storage_detail_id)::text)
41. 0.006 0.014 ↑ 1.0 15 1

Hash (cost=1.15..1.15 rows=15 width=236) (actual time=0.014..0.014 rows=15 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
42. 0.008 0.008 ↑ 1.0 15 1

Seq Scan on obawo_internal_routing obawo_inte12_ (cost=0.00..1.15 rows=15 width=236) (actual time=0.006..0.008 rows=15 loops=1)

43. 0.011 0.035 ↑ 1.0 37 1

Hash (cost=2.37..2.37 rows=37 width=538) (actual time=0.035..0.035 rows=37 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 13kB
44. 0.024 0.024 ↑ 1.0 37 1

Seq Scan on obawo_task_type obawo_task13_ (cost=0.00..2.37 rows=37 width=538) (actual time=0.015..0.024 rows=37 loops=1)

45. 4.247 4.247 ↑ 1.0 1 137

Index Scan using m_refinventory_key on m_refinventory materialmg10_ (cost=0.28..0.30 rows=1 width=42) (actual time=0.031..0.031 rows=1 loops=137)

  • Index Cond: ((materialmg9_.m_refinventory_id)::text = (m_refinventory_id)::text)
46. 14.659 14.659 ↑ 1.0 1 137

Index Scan using m_attributesetinstance_key on m_attributesetinstance attributes11_ (cost=0.42..8.10 rows=1 width=85) (actual time=0.107..0.107 rows=1 loops=137)

  • Index Cond: ((obawo_task0_.expected_attribute_id)::text = (m_attributesetinstance_id)::text)
47. 0.134 0.137 ↑ 1.3 3 137

Materialize (cost=0.00..1.06 rows=4 width=318) (actual time=0.001..0.001 rows=3 loops=137)

48. 0.003 0.003 ↓ 0.0 3 1

Seq Scan on obawo_base_task_type obawo_base14_ (cost=0.00..1.04 rows=4 width=318 (cost=0..0 rows=0 width=0) (actual time=0.003..0.003 rows=3 loops=1)

49. 0.005 0.028 ↑ 1.0 15 1

Hash (cost=2.43..2.43 rows=15 width=164) (actual time=0.028..0.028 rows=15 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
50. 0.011 0.023 ↑ 1.0 15 1

Hash Left Join (cost=1.23..2.43 rows=15 width=164) (actual time=0.018..0.023 rows=15 loops=1)

  • Hash Cond: ((obawo_inte20_.internal_routing_area_to_id)::text = (obawo_inte21_.obawo_internal_routing_area_id)::text)
51. 0.002 0.002 ↓ 0.0 15 1

Seq Scan on obawo_internal_routing obawo_inte20_ (cost=0.00..1.15 rows=15 width=164 (cost=0..0 rows=0 width=0) (actual time=0.001..0.002 rows=15 loops=1)

52. 0.003 0.010 ↑ 1.0 10 1

Hash (cost=1.10..1.10 rows=10 width=82) (actual time=0.010..0.010 rows=10 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
53. 0.007 0.007 ↑ 1.0 10 1

Seq Scan on obawo_internal_routing_area obawo_inte21_ (cost=0.00..1.10 rows=10 width=82) (actual time=0.006..0.007 rows=10 loops=1)

54. 0.004 0.022 ↑ 1.0 15 1

Hash (cost=2.43..2.43 rows=15 width=164) (actual time=0.022..0.022 rows=15 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
55. 0.011 0.018 ↑ 1.0 15 1

Hash Left Join (cost=1.23..2.43 rows=15 width=164) (actual time=0.013..0.018 rows=15 loops=1)

  • Hash Cond: ((obawo_inte18_.internal_routing_area_from_id)::text = (obawo_inte19_.obawo_internal_routing_area_id)::text)
56. 0.002 0.002 ↑ 1.0 15 1

Seq Scan on obawo_internal_routing obawo_inte18_ (cost=0.00..1.15 rows=15 width=164) (actual time=0.001..0.002 rows=15 loops=1)

57. 0.003 0.005 ↑ 1.0 10 1

Hash (cost=1.10..1.10 rows=10 width=82) (actual time=0.005..0.005 rows=10 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
58. 0.002 0.002 ↑ 1.0 10 1

Seq Scan on obawo_internal_routing_area obawo_inte19_ (cost=0.00..1.10 rows=10 width=82) (actual time=0.001..0.002 rows=10 loops=1)

59. 0.348 0.676 ↑ 1.0 2,020 1

Hash (cost=88.20..88.20 rows=2,020 width=42) (actual time=0.676..0.676 rows=2,020 loops=1)

  • Buckets: 2048 Batches: 1 Memory Usage: 163kB
60. 0.328 0.328 ↑ 1.0 2,020 1

Seq Scan on m_refinventory materialmg15_ (cost=0.00..88.20 rows=2,020 width=42) (actual time=0.004..0.328 rows=2,020 loops=1)

61. 0.337 0.614 ↑ 1.0 2,020 1

Hash (cost=88.20..88.20 rows=2,020 width=42) (actual time=0.614..0.614 rows=2,020 loops=1)

  • Buckets: 2048 Batches: 1 Memory Usage: 163kB
62. 0.277 0.277 ↑ 1.0 2,020 1

Seq Scan on m_refinventory materialmg16_ (cost=0.00..88.20 rows=2,020 width=42) (actual time=0.002..0.277 rows=2,020 loops=1)

63. 0.137 0.137 ↓ 0.0 0 137

Index Only Scan using c_uom_key on c_uom uom17_ (cost=0.14..0.17 rows=1 width=82) (actual time=0.001..0.001 rows=0 loops=137)

  • Index Cond: (c_uom_id = (obawo_task0_.c_aum)::text)
  • Heap Fetches: 0
64. 0.000 0.000 ↓ 0.0 0 137

Materialize (cost=0.14..19.53 rows=1 width=82) (actual time=0.000..0.000 rows=0 loops=137)

65. 0.000 0.002 ↓ 0.0 0 1

Nested Loop (cost=0.14..19.52 rows=1 width=82) (actual time=0.002..0.002 rows=0 loops=1)

66. 0.002 0.002 ↓ 0.0 0 1

Seq Scan on obawo_errors obawo_erro28_ (cost=0.00..11.35 rows=1 width=82) (actual time=0.001..0.002 rows=0 loops=1)

  • Filter: (((taskstatus)::text = 'N'::text) AND (blocks = 'Y'::bpchar))
67. 0.000 0.000 ↓ 0.0 0

Index Scan using obawo_idx_errortask_error on obawo_error_task obawo_erro27_ (cost=0.14..8.16 rows=1 width=164) (never executed)

  • Index Cond: ((obawo_errors_id)::text = (obawo_erro28_.obawo_errors_id)::text)
68. 0.361 1.103 ↑ 1.0 2,336 1

Hash (cost=165.36..165.36 rows=2,336 width=111) (actual time=1.103..1.103 rows=2,336 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 181kB
69. 0.742 0.742 ↑ 1.0 2,336 1

Seq Scan on m_product product22_ (cost=0.00..165.36 rows=2,336 width=111) (actual time=0.006..0.742 rows=2,336 loops=1)

70. 0.412 0.825 ↑ 1.0 2,336 1

Hash (cost=165.36..165.36 rows=2,336 width=55) (actual time=0.825..0.825 rows=2,336 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 233kB
71. 0.413 0.413 ↑ 1.0 2,336 1

Seq Scan on m_product product23_ (cost=0.00..165.36 rows=2,336 width=55) (actual time=0.002..0.413 rows=2,336 loops=1)

72. 0.548 0.548 ↑ 1.0 1 137

Index Only Scan using c_uom_key on c_uom uom24_ (cost=0.14..0.16 rows=1 width=82) (actual time=0.004..0.004 rows=1 loops=137)

  • Index Cond: (c_uom_id = (product23_.c_uom_id)::text)
  • Heap Fetches: 137
73. 0.380 0.954 ↑ 1.0 2,336 1

Hash (cost=165.36..165.36 rows=2,336 width=66) (actual time=0.954..0.954 rows=2,336 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 205kB
74. 0.574 0.574 ↑ 1.0 2,336 1

Seq Scan on m_product product25_ (cost=0.00..165.36 rows=2,336 width=66) (actual time=0.002..0.574 rows=2,336 loops=1)

75. 0.059 0.135 ↑ 1.0 387 1

Hash (cost=16.87..16.87 rows=387 width=32) (actual time=0.135..0.135 rows=387 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 33kB
76. 0.076 0.076 ↑ 1.0 387 1

Seq Scan on m_attributeset attributes26_ (cost=0.00..16.87 rows=387 width=32) (actual time=0.003..0.076 rows=387 loops=1)

Planning time : 28.144 ms
Execution time : 14,458.689 ms