explain.depesz.com

PostgreSQL's explain analyze made readable

Result: TQJU

Settings
# exclusive inclusive rows x rows loops node
1. 0.026 7,765.156 ↓ 14.5 29 1

Subquery Scan on vw_invoices_all_picking (cost=54,855.10..54,855.12 rows=2 width=589) (actual time=7,765.128..7,765.156 rows=29 loops=1)

2. 0.259 7,765.130 ↓ 14.5 29 1

Sort (cost=54,855.10..54,855.10 rows=2 width=593) (actual time=7,765.125..7,765.130 rows=29 loops=1)

  • Sort Key: vw_invoices_all_base.has_changed DESC, ((vw_invoices_all_base."time")::date), vw_invoices_all_base.is_rushed DESC, vw_invoices_all_base."time", vw_invoices_all_base.lane, vw_invoices_all_base.customer_priority, vw_invoices_all_base.invoice_priority
  • Sort Method: quicksort Memory: 38kB
3. 0.053 7,764.871 ↓ 14.5 29 1

Subquery Scan on vw_invoices_all_base (cost=49,701.82..54,855.09 rows=2 width=593) (actual time=7,754.387..7,764.871 rows=29 loops=1)

4. 0.376 7,764.818 ↓ 14.5 29 1

Nested Loop Left Join (cost=49,701.82..54,855.06 rows=2 width=589) (actual time=7,754.383..7,764.818 rows=29 loops=1)

  • Join Filter: ((inwh_1.autoid)::text = (inwh.autoid)::text)
5. 0.056 7,753.915 ↓ 14.5 29 1

Merge Left Join (cost=49,701.82..49,701.93 rows=2 width=560) (actual time=7,753.860..7,753.915 rows=29 loops=1)

  • Merge Cond: (pick_jobs.id = pick_jobs_shelved.pick_job)
6. 0.136 7,753.730 ↓ 14.5 29 1

Sort (cost=49,682.07..49,682.07 rows=2 width=552) (actual time=7,753.721..7,753.730 rows=29 loops=1)

  • Sort Key: pick_jobs.id
  • Sort Method: quicksort Memory: 36kB
7. 0.114 7,753.594 ↓ 14.5 29 1

Nested Loop Left Join (cost=49,346.85..49,682.06 rows=2 width=552) (actual time=634.887..7,753.594 rows=29 loops=1)

8. 0.686 7,753.248 ↓ 14.5 29 1

Merge Left Join (cost=49,346.58..49,662.59 rows=2 width=548) (actual time=634.868..7,753.248 rows=29 loops=1)

  • Merge Cond: ((arinvdet.doc_aid)::text = (pick_jobs_deleted.original_invoice)::text)
  • Join Filter: ((pick_jobs_deleted.original_warehouse)::text = (inwh_1.autoid)::text)
9. 0.179 7,739.889 ↓ 29.0 29 1

Nested Loop Left Join (cost=47,853.64..48,162.72 rows=1 width=530) (actual time=623.535..7,739.889 rows=29 loops=1)

10. 0.778 7,739.159 ↓ 29.0 29 1

Merge Left Join (cost=47,853.36..48,159.52 rows=1 width=536) (actual time=623.510..7,739.159 rows=29 loops=1)

  • Merge Cond: ((arinvdet.doc_aid)::text = (pick_jobs_updated.original_invoice)::text)
  • Join Filter: ((pick_jobs_updated.original_warehouse)::text = (inwh_1.autoid)::text)
11. 0.073 7,730.707 ↓ 29.0 29 1

Nested Loop Left Join (cost=47,672.28..47,978.12 rows=1 width=532) (actual time=617.316..7,730.707 rows=29 loops=1)

12. 0.142 7,730.547 ↓ 29.0 29 1

Nested Loop (cost=47,672.13..47,977.68 rows=1 width=519) (actual time=617.309..7,730.547 rows=29 loops=1)

  • Join Filter: (NOT COALESCE(CASE WHEN (true) THEN ((arinv.ship_date <> pick_jobs.original_ship_date) OR ((arinv.ship_via)::text <> (pick_jobs.original_ship_method)::text)) ELSE true END, false))
13. 1,797.966 7,729.691 ↓ 34.0 34 1

Nested Loop (cost=47,671.71..47,973.56 rows=1 width=257) (actual time=617.202..7,729.691 rows=34 loops=1)

  • Join Filter: ((arinvdet.doc_aid)::text = (scheduled_invoices.invoice_autoid)::text)
  • Rows Removed by Join Filter: 9202196
14. 1.475 306.311 ↓ 531.0 531 1

Nested Loop Left Join (cost=11,506.40..11,565.42 rows=1 width=88) (actual time=293.322..306.311 rows=531 loops=1)

  • Filter: (pick_jobs.finished IS NULL)
  • Rows Removed by Filter: 129
15. 1.360 297.576 ↓ 94.3 660 1

Group (cost=11,505.99..11,506.24 rows=7 width=49) (actual time=293.268..297.576 rows=660 loops=1)

  • Group Key: arinvdet.doc_aid, inwh_1.autoid
16. 2.040 296.216 ↓ 437.3 3,061 1

Unique (cost=11,505.99..11,506.13 rows=7 width=154) (actual time=293.266..296.216 rows=3,061 loops=1)

17. 15.498 294.176 ↓ 437.3 3,061 1

Sort (cost=11,505.99..11,506.01 rows=7 width=154) (actual time=293.264..294.176 rows=3,061 loops=1)

  • Sort Key: arinvdet.doc_aid, arinvdet.autoid, arinvdet.descr, arinvdet.unit_meas, ((gbl_functions.fn_mainunit_to_uom_qty(inventry.id, arinvdet.unit_meas, arinvdet.quan))::integer), ((NULLIF((arinvdet.gpar_time)::text, ''::text))::character varying), (COALESCE(pick_transactions.qty_shipped, 0))
  • Sort Method: quicksort Memory: 758kB
18. 86.495 278.678 ↓ 437.3 3,061 1

Nested Loop Left Join (cost=1.14..11,505.89 rows=7 width=154) (actual time=0.473..278.678 rows=3,061 loops=1)

19. 3.393 164.634 ↓ 437.3 3,061 1

Nested Loop (cost=0.71..11,499.13 rows=7 width=132) (actual time=0.372..164.634 rows=3,061 loops=1)

20. 1.586 130.231 ↓ 387.6 3,101 1

Nested Loop (cost=0.43..11,496.40 rows=8 width=130) (actual time=0.358..130.231 rows=3,101 loops=1)

  • Join Filter: ((arinvdet.warehouse)::text = (inwh_1.warehouse)::text)
21. 0.016 0.016 ↑ 1.0 1 1

Seq Scan on inwh inwh_1 (cost=0.00..1.05 rows=1 width=64) (actual time=0.013..0.016 rows=1 loops=1)

  • Filter: ((autoid)::text = '2GA89EVTVE3SGAD1'::text)
  • Rows Removed by Filter: 3
22. 3.668 128.629 ↓ 81.6 3,101 1

Nested Loop (cost=0.43..11,494.87 rows=38 width=105) (actual time=0.342..128.629 rows=3,101 loops=1)

23. 112.991 112.991 ↓ 83.1 665 1

Seq Scan on arinv arinv_1 (cost=0.00..10,944.11 rows=8 width=17) (actual time=0.316..112.991 rows=665 loops=1)

  • Filter: ((is_rma IS NOT TRUE) AND (progress < '80'::numeric) AND ((status)::text = 'U'::text))
  • Rows Removed by Filter: 106344
24. 11.970 11.970 ↑ 1.2 5 665

Index Scan using arinvdet_docaid_idx on arinvdet (cost=0.43..68.79 rows=6 width=105) (actual time=0.013..0.018 rows=5 loops=665)

  • Index Cond: ((doc_aid)::text = (arinv_1.autoid)::text)
  • Filter: ((quan > 0.0) AND ((id)::text !~~ '($)%'::text))
  • Rows Removed by Filter: 0
25. 31.010 31.010 ↑ 1.0 1 3,101

Index Scan using idx_btree_inventry_id on inventry (cost=0.29..0.33 rows=1 width=12) (actual time=0.009..0.010 rows=1 loops=3,101)

  • Index Cond: ((id)::text = (arinvdet.inven)::text)
  • Filter: (((c_type <> 1.0) OR (auto_cost IS NOT TRUE)) AND (discou_typ <= 0))
  • Rows Removed by Filter: 0
26. 27.549 27.549 ↓ 0.0 0 3,061

Index Scan using uc_item on pick_transactions (cost=0.42..0.71 rows=1 width=21) (actual time=0.009..0.009 rows=0 loops=3,061)

  • Index Cond: ((arinvdet.autoid)::text = (item)::text)
27. 7.260 7.260 ↓ 0.0 0 660

Index Scan using uc_invoice_warehouse on pick_jobs (cost=0.41..8.43 rows=1 width=106) (actual time=0.011..0.011 rows=0 loops=660)

  • Index Cond: (((arinvdet.doc_aid)::text = (invoice)::text) AND ((inwh_1.autoid)::text = (warehouse)::text) AND ((warehouse)::text = '2GA89EVTVE3SGAD1'::text))
28. 2,538.711 5,625.414 ↓ 3.7 17,330 531

Append (cost=36,165.31..36,304.07 rows=4,625 width=209) (actual time=0.090..10.594 rows=17,330 loops=531)

29.          

CTE scheduled_invoices

30. 0.880 95.237 ↑ 1.8 160 1

Nested Loop Left Join (cost=2,115.72..12,945.81 rows=291 width=124) (actual time=47.470..95.237 rows=160 loops=1)

31. 0.180 94.197 ↑ 1.8 160 1

Hash Left Join (cost=2,115.44..12,839.53 rows=291 width=147) (actual time=47.416..94.197 rows=160 loops=1)

  • Hash Cond: ((arinv_3.company = (invoice.company)::text) AND ((arinv_3.invoice)::text = (invoice.invoice_id)::text))
32. 0.459 77.058 ↑ 1.8 160 1

Hash Left Join (cost=1,475.87..12,176.11 rows=291 width=144) (actual time=30.437..77.058 rows=160 loops=1)

  • Hash Cond: ((arinv_3.ship_cat = customer_entry.ship_cat) AND (arinv_3.ship_date = customer_entry.date) AND ((((COALESCE((arinv_3.c_id)::text, ''::text) || COALESCE((arinv_3.c_zip)::text, ''::text)) || '_'::text) || COALESCE((arinv_3.c_address1)::text, ''::text)) = (customer_entry.sch_cust_id)::text))
  • Filter: ((arinv_3.ship_cat > 2) OR (customer_entry.load_id IS NOT NULL))
  • Rows Removed by Filter: 5
33. 0.300 49.741 ↑ 1.9 165 1

Subquery Scan on arinv_3 (cost=0.00..10,697.67 rows=313 width=232) (actual time=3.417..49.741 rows=165 loops=1)

  • Filter: (arinv_3.progress >= '40'::numeric)
  • Rows Removed by Filter: 718
34. 0.325 49.441 ↑ 1.1 883 1

Append (cost=0.00..10,685.94 rows=938 width=1,206) (actual time=0.161..49.441 rows=883 loops=1)

35. 0.001 0.001 ↓ 0.0 0 1

Result (cost=0.00..0.00 rows=0 width=1,206) (actual time=0.001..0.001 rows=0 loops=1)

  • One-Time Filter: false
36. 0.001 0.002 ↓ 0.0 0 1

Subquery Scan on *SELECT* 2_1 (cost=0.00..0.00 rows=1 width=1,206) (actual time=0.002..0.002 rows=0 loops=1)

37. 0.001 0.001 ↓ 0.0 0 1

Result (cost=0.00..0.00 rows=0 width=1,206) (actual time=0.000..0.001 rows=0 loops=1)

  • One-Time Filter: false
38. 49.111 49.111 ↑ 1.1 883 1

Seq Scan on arinv arinv_4 (cost=0.00..10,676.59 rows=935 width=447) (actual time=0.157..49.111 rows=883 loops=1)

  • Filter: ((status)::text = 'U'::text)
  • Rows Removed by Filter: 106126
39. 0.001 0.002 ↓ 0.0 0 1

Subquery Scan on *SELECT* 4 (cost=0.00..0.00 rows=1 width=1,206) (actual time=0.002..0.002 rows=0 loops=1)

40. 0.001 0.001 ↓ 0.0 0 1

Result (cost=0.00..0.00 rows=0 width=1,178) (actual time=0.001..0.001 rows=0 loops=1)

  • One-Time Filter: false
41. 15.328 26.858 ↑ 1.0 32,577 1

Hash (cost=905.77..905.77 rows=32,577 width=41) (actual time=26.858..26.858 rows=32,577 loops=1)

  • Buckets: 32768 Batches: 1 Memory Usage: 2689kB
42. 11.530 11.530 ↑ 1.0 32,577 1

Seq Scan on customer_entry (cost=0.00..905.77 rows=32,577 width=41) (actual time=0.017..11.530 rows=32,577 loops=1)

43. 5.875 16.959 ↓ 58.0 8,059 1

Hash (cost=637.48..637.48 rows=139 width=23) (actual time=16.959..16.959 rows=8,059 loops=1)

  • Buckets: 8192 (originally 1024) Batches: 1 (originally 1) Memory Usage: 506kB
44. 11.084 11.084 ↓ 58.0 8,059 1

Seq Scan on invoice (cost=0.00..637.48 rows=139 width=23) (actual time=0.024..11.084 rows=8,059 loops=1)

  • Filter: ((company)::text = 'KFR'::text)
  • Rows Removed by Filter: 19840
45. 0.160 0.160 ↑ 1.0 1 160

Index Scan using uc_id_date on load (cost=0.28..0.31 rows=1 width=24) (actual time=0.001..0.001 rows=1 loops=160)

  • Index Cond: (id = customer_entry.load_id)
46.          

CTE rushed_invoices

47. 104.276 104.325 ↑ 6.0 1 1

Seq Scan on arinv arinv_5 (cost=6.55..11,218.17 rows=6 width=21) (actual time=78.199..104.325 rows=1 loops=1)

  • Filter: (is_rushed AND (progress >= '30'::numeric) AND (NOT (hashed SubPlan 6)) AND ((status)::text = 'U'::text))
  • Rows Removed by Filter: 107008
48.          

SubPlan (forSeq Scan)

49. 0.049 0.049 ↑ 1.8 160 1

CTE Scan on scheduled_invoices scheduled_invoices_1 (cost=0.00..5.82 rows=291 width=32) (actual time=0.001..0.049 rows=160 loops=1)

50.          

CTE pick_jobs

51. 91.150 91.204 ↓ 4.0 17,169 1

Seq Scan on pick_jobs pick_jobs_2 (cost=6.68..12,001.33 rows=4,328 width=17) (actual time=22.797..91.204 rows=17,169 loops=1)

  • Filter: ((NOT (hashed SubPlan 8)) AND (NOT (hashed SubPlan 9)))
  • Rows Removed by Filter: 140
52.          

SubPlan (forSeq Scan)

53. 0.052 0.052 ↑ 1.8 160 1

CTE Scan on scheduled_invoices scheduled_invoices_2 (cost=0.00..5.82 rows=291 width=32) (actual time=0.003..0.052 rows=160 loops=1)

54. 0.002 0.002 ↑ 6.0 1 1

CTE Scan on rushed_invoices rushed_invoices_1 (cost=0.00..0.12 rows=6 width=32) (actual time=0.001..0.002 rows=1 loops=1)

55. 126.378 126.378 ↑ 1.8 160 531

CTE Scan on scheduled_invoices (cost=0.00..5.82 rows=291 width=235) (actual time=0.090..0.238 rows=160 loops=531)

56. 0.531 105.138 ↑ 6.0 1 531

Subquery Scan on *SELECT* 2 (cost=0.00..0.20 rows=6 width=209) (actual time=0.149..0.198 rows=1 loops=531)

57. 104.607 104.607 ↑ 6.0 1 531

CTE Scan on rushed_invoices (cost=0.00..0.12 rows=6 width=205) (actual time=0.148..0.197 rows=1 loops=531)

58. 2,855.187 2,855.187 ↓ 4.0 17,169 531

CTE Scan on pick_jobs pick_jobs_1 (cost=0.00..86.56 rows=4,328 width=209) (actual time=0.043..5.377 rows=17,169 loops=531)

59. 0.714 0.714 ↑ 1.0 1 34

Index Scan using arinv_pkey on arinv (cost=0.42..4.11 rows=1 width=279) (actual time=0.021..0.021 rows=1 loops=34)

  • Index Cond: ((autoid)::text = (scheduled_invoices.invoice_autoid)::text)
  • Filter: ((is_rma IS NOT TRUE) AND (progress < '80'::numeric) AND (progress < 60.0))
  • Rows Removed by Filter: 0
60. 0.087 0.087 ↓ 0.0 0 29

Index Scan using user_pkey on "user" (cost=0.14..0.44 rows=1 width=17) (actual time=0.003..0.003 rows=0 loops=29)

  • Index Cond: (pick_jobs."current_user" = id)
61. 0.442 7.674 ↓ 80.9 1,213 1

Materialize (cost=181.08..181.34 rows=15 width=71) (actual time=6.170..7.674 rows=1,213 loops=1)

62. 0.620 7.232 ↓ 80.9 1,213 1

Unique (cost=181.08..181.15 rows=15 width=79) (actual time=6.167..7.232 rows=1,213 loops=1)

63. 5.712 6.612 ↓ 95.8 1,437 1

Sort (cost=181.08..181.12 rows=15 width=79) (actual time=6.165..6.612 rows=1,437 loops=1)

  • Sort Key: pick_jobs_updated.original_invoice, pick_jobs_updated.time_updated DESC NULLS LAST
  • Sort Method: quicksort Memory: 170kB
64. 0.571 0.900 ↓ 103.3 1,550 1

Bitmap Heap Scan on pick_jobs_updated (cost=127.47..180.79 rows=15 width=79) (actual time=0.350..0.900 rows=1,550 loops=1)

  • Recheck Cond: ((original_warehouse)::text = '2GA89EVTVE3SGAD1'::text)
  • Heap Blocks: exact=19
65. 0.329 0.329 ↓ 103.3 1,550 1

Bitmap Index Scan on idx_btree_originalinvoice_originalwarehouse_timeupdated (cost=0.00..127.46 rows=15 width=0) (actual time=0.329..0.329 rows=1,550 loops=1)

  • Index Cond: ((original_warehouse)::text = '2GA89EVTVE3SGAD1'::text)
66. 0.551 0.551 ↑ 1.0 1 29

Index Scan using arcust_id_idx on arcust (cost=0.29..3.19 rows=1 width=8) (actual time=0.018..0.019 rows=1 loops=29)

  • Index Cond: ((arinv.id)::text = (id)::text)
67. 0.404 12.673 ↓ 3.3 1,135 1

Materialize (cost=1,492.94..1,498.98 rows=345 width=85) (actual time=11.309..12.673 rows=1,135 loops=1)

68. 0.574 12.269 ↓ 3.3 1,135 1

Unique (cost=1,492.94..1,494.67 rows=345 width=93) (actual time=11.306..12.269 rows=1,135 loops=1)

69. 5.440 11.695 ↓ 3.9 1,337 1

Sort (cost=1,492.94..1,493.81 rows=345 width=93) (actual time=11.304..11.695 rows=1,337 loops=1)

  • Sort Key: pick_jobs_deleted.original_invoice, pick_jobs_deleted.time_deleted DESC NULLS LAST
  • Sort Method: quicksort Memory: 164kB
70. 6.255 6.255 ↓ 4.2 1,457 1

Seq Scan on pick_jobs_deleted (cost=0.00..1,478.40 rows=345 width=93) (actual time=0.118..6.255 rows=1,457 loops=1)

  • Filter: ((original_warehouse)::text = '2GA89EVTVE3SGAD1'::text)
71. 0.232 0.232 ↓ 0.0 0 29

Index Scan using uc_invoice_warehosue on invoice_pictures (cost=0.27..6.58 rows=1 width=71) (actual time=0.008..0.008 rows=0 loops=29)

  • Index Cond: (((arinvdet.doc_aid)::text = (invoice)::text) AND ((inwh_1.autoid)::text = (warehouse)::text) AND ((warehouse)::text = '2GA89EVTVE3SGAD1'::text))
72. 0.019 0.129 ↓ 9.8 49 1

Unique (cost=19.76..19.78 rows=5 width=44) (actual time=0.102..0.129 rows=49 loops=1)

73. 0.054 0.110 ↓ 9.8 49 1

Sort (cost=19.76..19.77 rows=5 width=44) (actual time=0.101..0.110 rows=49 loops=1)

  • Sort Key: pick_jobs_shelved.pick_job, pick_jobs_shelved.shelved_time DESC NULLS LAST
  • Sort Method: quicksort Memory: 27kB
74. 0.056 0.056 ↓ 9.8 49 1

Seq Scan on pick_jobs_shelved (cost=0.00..19.70 rows=5 width=44) (actual time=0.043..0.056 rows=49 loops=1)

  • Filter: (unshelved_time IS NULL)
75. 0.018 0.029 ↑ 1.0 1 29

Materialize (cost=0.00..1.05 rows=1 width=64) (actual time=0.001..0.001 rows=1 loops=29)

76. 0.011 0.011 ↑ 1.0 1 1

Seq Scan on inwh (cost=0.00..1.05 rows=1 width=64) (actual time=0.011..0.011 rows=1 loops=1)

  • Filter: ((autoid)::text = '2GA89EVTVE3SGAD1'::text)
  • Rows Removed by Filter: 2
77.          

SubPlan (forNested Loop Left Join)

78. 0.087 8.932 ↑ 1.0 1 29

Aggregate (cost=95.42..95.43 rows=1 width=8) (actual time=0.307..0.308 rows=1 loops=29)

79. 0.116 8.845 ↓ 4.0 4 29

Unique (cost=95.38..95.40 rows=1 width=154) (actual time=0.302..0.305 rows=4 loops=29)

80. 0.377 8.729 ↓ 4.0 4 29

Sort (cost=95.38..95.39 rows=1 width=154) (actual time=0.300..0.301 rows=4 loops=29)

  • Sort Key: arinvdet_1.autoid, arinvdet_1.descr, arinvdet_1.unit_meas, ((gbl_functions.fn_mainunit_to_uom_qty(inventry_1.id, arinvdet_1.unit_meas, arinvdet_1.quan))::integer), ((NULLIF((arinvdet_1.gpar_time)::text, ''::text))::character varying), (COALESCE(pick_transactions_1.qty_shipped, 0))
  • Sort Method: quicksort Memory: 25kB
81. 3.528 8.352 ↓ 4.0 4 29

Nested Loop Left Join (cost=1.55..95.37 rows=1 width=154) (actual time=0.093..0.288 rows=4 loops=29)

82. 0.193 3.654 ↓ 4.0 4 29

Nested Loop (cost=1.13..86.68 rows=1 width=132) (actual time=0.047..0.126 rows=4 loops=29)

83. 0.212 2.291 ↓ 4.0 4 29

Nested Loop (cost=0.71..78.23 rows=1 width=132) (actual time=0.034..0.079 rows=4 loops=29)

84. 0.232 0.899 ↓ 4.0 4 29

Nested Loop (cost=0.43..69.91 rows=1 width=130) (actual time=0.022..0.031 rows=4 loops=29)

  • Join Filter: ((arinvdet_1.warehouse)::text = (inwh_2.warehouse)::text)
85. 0.087 0.087 ↑ 1.0 1 29

Seq Scan on inwh inwh_2 (cost=0.00..1.05 rows=1 width=64) (actual time=0.002..0.003 rows=1 loops=29)

  • Filter: ((autoid)::text = (inwh_1.autoid)::text)
  • Rows Removed by Filter: 3
86. 0.580 0.580 ↑ 1.5 4 29

Index Scan using arinvdet_docaid_idx on arinvdet arinvdet_1 (cost=0.43..68.79 rows=6 width=105) (actual time=0.015..0.020 rows=4 loops=29)

  • Index Cond: ((doc_aid)::text = (arinvdet.doc_aid)::text)
  • Filter: ((quan > 0.0) AND ((id)::text !~~ '($)%'::text))
  • Rows Removed by Filter: 0
87. 1.180 1.180 ↑ 1.0 1 118

Index Scan using idx_btree_inventry_id on inventry inventry_1 (cost=0.29..8.31 rows=1 width=12) (actual time=0.010..0.010 rows=1 loops=118)

  • Index Cond: ((id)::text = (arinvdet_1.inven)::text)
  • Filter: (((c_type <> 1.0) OR (auto_cost IS NOT TRUE)) AND (discou_typ <= 0))
  • Rows Removed by Filter: 0
88. 1.170 1.170 ↑ 1.0 1 117

Index Scan using arinv_pkey on arinv arinv_2 (cost=0.42..8.44 rows=1 width=17) (actual time=0.010..0.010 rows=1 loops=117)

  • Index Cond: ((autoid)::text = (arinvdet.doc_aid)::text)
  • Filter: ((is_rma IS NOT TRUE) AND (progress < '80'::numeric) AND ((status)::text = 'U'::text))
89. 1.170 1.170 ↓ 0.0 0 117

Index Scan using uc_item on pick_transactions pick_transactions_1 (cost=0.42..8.44 rows=1 width=21) (actual time=0.010..0.010 rows=0 loops=117)

  • Index Cond: ((arinvdet_1.autoid)::text = (item)::text)
90. 0.290 0.406 ↑ 1.0 1 29

Aggregate (cost=2,467.44..2,467.45 rows=1 width=8) (actual time=0.014..0.014 rows=1 loops=29)

91. 0.058 0.116 ↑ 689.0 1 29

Bitmap Heap Scan on pick_transactions pick_transactions_2 (cost=13.76..2,465.72 rows=689 width=17) (actual time=0.003..0.004 rows=1 loops=29)

  • Recheck Cond: (pick_job = pick_jobs.id)
  • Heap Blocks: exact=6
92. 0.058 0.058 ↑ 689.0 1 29

Bitmap Index Scan on idx_btree_picktransactions_pickjob (cost=0.00..13.59 rows=689 width=0) (actual time=0.002..0.002 rows=1 loops=29)

  • Index Cond: (pick_job = pick_jobs.id)
93. 0.609 0.609 ↓ 0.0 0 29

Seq Scan on "user" user_1 (cost=0.00..6.56 rows=1 width=13) (actual time=0.021..0.021 rows=0 loops=29)

  • Filter: (id = pick_jobs_deleted.original_picker)
  • Rows Removed by Filter: 205
94. 0.551 0.551 ↓ 0.0 0 29

Seq Scan on "user" user_1_1 (cost=0.00..6.56 rows=1 width=13) (actual time=0.019..0.019 rows=0 loops=29)

  • Filter: (id = pick_jobs_updated.original_picker)
  • Rows Removed by Filter: 205
Planning time : 14.759 ms
Execution time : 7,767.297 ms