explain.depesz.com

PostgreSQL's explain analyze made readable

Result: sVYF

Settings
# exclusive inclusive rows x rows loops node
1. 0.028 7,935.769 ↓ 14.5 29 1

Subquery Scan on vw_invoices_all_picking (cost=58,283.85..58,283.87 rows=2 width=589) (actual time=7,935.741..7,935.769 rows=29 loops=1)

2. 0.257 7,935.741 ↓ 14.5 29 1

Sort (cost=58,283.85..58,283.85 rows=2 width=593) (actual time=7,935.737..7,935.741 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.043 7,935.484 ↓ 14.5 29 1

Subquery Scan on vw_invoices_all_base (cost=53,130.58..58,283.84 rows=2 width=593) (actual time=7,924.917..7,935.484 rows=29 loops=1)

4. 0.389 7,935.441 ↓ 14.5 29 1

Nested Loop Left Join (cost=53,130.58..58,283.81 rows=2 width=589) (actual time=7,924.913..7,935.441 rows=29 loops=1)

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

Merge Left Join (cost=53,130.58..53,130.68 rows=2 width=560) (actual time=7,924.174..7,924.235 rows=29 loops=1)

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

Sort (cost=53,110.82..53,110.82 rows=2 width=552) (actual time=7,924.057..7,924.067 rows=29 loops=1)

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

Nested Loop Left Join (cost=52,756.34..53,110.81 rows=2 width=552) (actual time=849.164..7,923.931 rows=29 loops=1)

8. 0.657 7,923.629 ↓ 14.5 29 1

Merge Left Join (cost=52,756.07..53,091.34 rows=2 width=548) (actual time=849.149..7,923.629 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.164 7,914.663 ↓ 29.0 29 1

Nested Loop Left Join (cost=51,265.57..51,593.94 rows=1 width=530) (actual time=842.126..7,914.663 rows=29 loops=1)

10. 0.744 7,914.180 ↓ 29.0 29 1

Merge Left Join (cost=51,265.29..51,590.74 rows=1 width=536) (actual time=842.107..7,914.180 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.075 7,906.034 ↓ 29.0 29 1

Nested Loop Left Join (cost=51,084.21..51,409.35 rows=1 width=532) (actual time=836.119..7,906.034 rows=29 loops=1)

12. 0.152 7,905.872 ↓ 29.0 29 1

Nested Loop (cost=51,084.06..51,408.90 rows=1 width=519) (actual time=836.108..7,905.872 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,768.463 7,905.108 ↓ 34.0 34 1

Nested Loop (cost=51,083.65..51,404.86 rows=1 width=257) (actual time=836.079..7,905.108 rows=34 loops=1)

  • Join Filter: ((arinvdet.doc_aid)::text = (scheduled_invoices.invoice_autoid)::text)
  • Rows Removed by Join Filter: 9365066
14. 1.435 324.135 ↓ 530.0 530 1

Nested Loop Left Join (cost=11,506.40..11,565.42 rows=1 width=88) (actual time=311.356..324.135 rows=530 loops=1)

  • Filter: (pick_jobs.finished IS NULL)
  • Rows Removed by Filter: 130
15. 1.293 315.440 ↓ 94.3 660 1

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

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

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

17. 15.843 312.215 ↓ 437.3 3,061 1

Sort (cost=11,505.99..11,506.01 rows=7 width=154) (actual time=311.297..312.215 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. 84.718 296.372 ↓ 437.3 3,061 1

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

19. 4.254 184.105 ↓ 437.3 3,061 1

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

20. 1.613 148.841 ↓ 387.6 3,101 1

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

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

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

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

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

23. 124.944 124.944 ↓ 83.1 665 1

Seq Scan on arinv arinv_1 (cost=0.00..10,944.11 rows=8 width=17) (actual time=0.030..124.944 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. 18.620 18.620 ↑ 1.2 5 665

Index Scan using arinvdet_docaid_idx on arinvdet (cost=0.43..68.79 rows=6 width=105) (actual time=0.018..0.028 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.010..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,573.680 5,812.510 ↓ 3.5 17,670 530

Append (cost=39,577.24..39,727.08 rows=4,994 width=209) (actual time=0.500..10.967 rows=17,670 loops=530)

29.          

CTE scheduled_invoices

30. 1.880 280.081 ↑ 1.3 499 1

Nested Loop Left Join (cost=15,738.79..16,341.14 rows=660 width=124) (actual time=264.309..280.081 rows=499 loops=1)

31. 15.349 277.702 ↑ 1.3 499 1

Merge Left Join (cost=15,738.51..16,100.09 rows=660 width=147) (actual time=264.252..277.702 rows=499 loops=1)

  • Merge Cond: (((arinv_3.invoice)::text = ((invoice.invoice_id)::text)) AND (arinv_3.company = ((invoice.company)::text)))
32. 1.916 96.052 ↑ 1.3 499 1

Sort (cost=13,180.47..13,182.12 rows=660 width=144) (actual time=95.940..96.052 rows=499 loops=1)

  • Sort Key: arinv_3.invoice, arinv_3.company
  • Sort Method: quicksort Memory: 95kB
33. 0.883 94.136 ↑ 1.3 499 1

Hash Left Join (cost=1,476.16..13,149.56 rows=660 width=144) (actual time=26.215..94.136 rows=499 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: 80
34. 0.723 67.222 ↑ 1.2 579 1

Subquery Scan on arinv_3 (cost=0.29..11,667.83 rows=710 width=232) (actual time=0.026..67.222 rows=579 loops=1)

  • Filter: (arinv_3.progress >= '40'::numeric)
  • Rows Removed by Filter: 1474
35. 0.686 66.499 ↑ 1.0 2,053 1

Append (cost=0.29..11,641.21 rows=2,130 width=1,206) (actual time=0.024..66.499 rows=2,053 loops=1)

36. 0.402 0.402 ↓ 1.1 188 1

Index Scan using idx_btree_arinv_status on arinv arinv_4 (cost=0.29..52.75 rows=169 width=395) (actual time=0.023..0.402 rows=188 loops=1)

  • Index Cond: ((status)::text = 'U'::text)
37. 0.491 2.294 ↑ 1.0 982 1

Subquery Scan on *SELECT* 2_1 (cost=0.42..523.80 rows=1,025 width=442) (actual time=0.026..2.294 rows=982 loops=1)

38. 1.803 1.803 ↑ 1.0 982 1

Index Scan using arinv_status_idx on arinv arinv_5 (cost=0.42..513.55 rows=1,025 width=450) (actual time=0.025..1.803 rows=982 loops=1)

  • Index Cond: ((status)::text = 'U'::text)
39. 61.544 61.544 ↑ 1.1 883 1

Seq Scan on arinv arinv_6 (cost=0.00..10,676.59 rows=935 width=447) (actual time=0.028..61.544 rows=883 loops=1)

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

Subquery Scan on *SELECT* 4 (cost=0.00..377.02 rows=1 width=630) (actual time=1.573..1.573 rows=0 loops=1)

41. 1.572 1.572 ↓ 0.0 0 1

Seq Scan on arinv arinv_7 (cost=0.00..377.01 rows=1 width=602) (actual time=1.571..1.572 rows=0 loops=1)

  • Filter: ((status)::text = 'U'::text)
  • Rows Removed by Filter: 3441
42. 15.059 26.031 ↑ 1.0 32,577 1

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

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

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

44. 147.868 166.301 ↑ 1.0 27,857 1

Sort (cost=2,558.04..2,627.79 rows=27,899 width=23) (actual time=161.125..166.301 rows=27,857 loops=1)

  • Sort Key: ((invoice.invoice_id)::text), ((invoice.company)::text)
  • Sort Method: quicksort Memory: 2955kB
45. 18.433 18.433 ↑ 1.0 27,899 1

Seq Scan on invoice (cost=0.00..497.99 rows=27,899 width=23) (actual time=0.120..18.433 rows=27,899 loops=1)

46. 0.499 0.499 ↑ 1.0 1 499

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=499)

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

CTE rushed_invoices

48. 117.876 118.007 ↑ 6.0 1 1

Seq Scan on arinv arinv_8 (cost=14.85..11,226.47 rows=6 width=21) (actual time=19.479..118.007 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
49.          

SubPlan (forSeq Scan)

50. 0.131 0.131 ↑ 1.3 499 1

CTE Scan on scheduled_invoices scheduled_invoices_1 (cost=0.00..13.20 rows=660 width=32) (actual time=0.001..0.131 rows=499 loops=1)

51.          

CTE pick_jobs

52. 92.923 93.070 ↓ 4.0 17,170 1

Seq Scan on pick_jobs pick_jobs_2 (cost=14.99..12,009.64 rows=4,328 width=17) (actual time=3.928..93.070 rows=17,170 loops=1)

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

SubPlan (forSeq Scan)

54. 0.146 0.146 ↑ 1.3 499 1

CTE Scan on scheduled_invoices scheduled_invoices_2 (cost=0.00..13.20 rows=660 width=32) (actual time=0.002..0.146 rows=499 loops=1)

55. 0.001 0.001 ↑ 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.001 rows=1 loops=1)

56. 370.470 370.470 ↑ 1.3 499 530

CTE Scan on scheduled_invoices (cost=0.00..13.20 rows=660 width=235) (actual time=0.499..0.699 rows=499 loops=530)

57. 0.530 119.250 ↑ 6.0 1 530

Subquery Scan on *SELECT* 2 (cost=0.00..0.20 rows=6 width=209) (actual time=0.038..0.225 rows=1 loops=530)

58. 118.720 118.720 ↑ 6.0 1 530

CTE Scan on rushed_invoices (cost=0.00..0.12 rows=6 width=205) (actual time=0.037..0.224 rows=1 loops=530)

59. 2,749.110 2,749.110 ↓ 4.0 17,170 530

CTE Scan on pick_jobs pick_jobs_1 (cost=0.00..86.56 rows=4,328 width=209) (actual time=0.008..5.187 rows=17,170 loops=530)

60. 0.612 0.612 ↑ 1.0 1 34

Index Scan using arinv_pkey on arinv (cost=0.42..4.02 rows=1 width=279) (actual time=0.018..0.018 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
61. 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)
62. 0.420 7.402 ↓ 80.8 1,212 1

Materialize (cost=181.08..181.34 rows=15 width=71) (actual time=5.969..7.402 rows=1,212 loops=1)

63. 0.598 6.982 ↓ 80.8 1,212 1

Unique (cost=181.08..181.15 rows=15 width=79) (actual time=5.964..6.982 rows=1,212 loops=1)

64. 5.685 6.384 ↓ 95.7 1,436 1

Sort (cost=181.08..181.12 rows=15 width=79) (actual time=5.963..6.384 rows=1,436 loops=1)

  • Sort Key: pick_jobs_updated.original_invoice, pick_jobs_updated.time_updated DESC NULLS LAST
  • Sort Method: quicksort Memory: 170kB
65. 0.485 0.699 ↓ 103.3 1,549 1

Bitmap Heap Scan on pick_jobs_updated (cost=127.47..180.79 rows=15 width=79) (actual time=0.223..0.699 rows=1,549 loops=1)

  • Recheck Cond: ((original_warehouse)::text = '2GA89EVTVE3SGAD1'::text)
  • Heap Blocks: exact=19
66. 0.214 0.214 ↓ 103.3 1,549 1

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

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

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

  • Index Cond: ((arinv.id)::text = (id)::text)
68. 0.378 8.309 ↓ 3.3 1,134 1

Materialize (cost=1,490.49..1,496.51 rows=344 width=85) (actual time=6.993..8.309 rows=1,134 loops=1)

69. 0.553 7.931 ↓ 3.3 1,134 1

Unique (cost=1,490.49..1,492.21 rows=344 width=93) (actual time=6.991..7.931 rows=1,134 loops=1)

70. 5.421 7.378 ↓ 3.9 1,336 1

Sort (cost=1,490.49..1,491.35 rows=344 width=93) (actual time=6.987..7.378 rows=1,336 loops=1)

  • Sort Key: pick_jobs_deleted.original_invoice, pick_jobs_deleted.time_deleted DESC NULLS LAST
  • Sort Method: quicksort Memory: 164kB
71. 1.957 1.957 ↓ 4.2 1,456 1

Seq Scan on pick_jobs_deleted (cost=0.00..1,476.00 rows=344 width=93) (actual time=0.040..1.957 rows=1,456 loops=1)

  • Filter: ((original_warehouse)::text = '2GA89EVTVE3SGAD1'::text)
72. 0.203 0.203 ↓ 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.007..0.007 rows=0 loops=29)

  • Index Cond: (((arinvdet.doc_aid)::text = (invoice)::text) AND ((inwh_1.autoid)::text = (warehouse)::text) AND ((warehouse)::text = '2GA89EVTVE3SGAD1'::text))
73. 0.023 0.110 ↓ 9.8 49 1

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

74. 0.047 0.087 ↓ 9.8 49 1

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

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

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

  • Filter: (unshelved_time IS NULL)
76. 0.015 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)

77. 0.014 0.014 ↑ 1.0 1 1

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

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

SubPlan (forNested Loop Left Join)

79. 0.058 9.135 ↑ 1.0 1 29

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

80. 0.116 9.077 ↓ 4.0 4 29

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

81. 0.406 8.961 ↓ 4.0 4 29

Sort (cost=95.38..95.39 rows=1 width=154) (actual time=0.308..0.309 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
82. 3.615 8.555 ↓ 4.0 4 29

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

83. 0.134 3.770 ↓ 4.0 4 29

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

84. 0.152 2.349 ↓ 4.0 4 29

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

85. 0.261 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)
86. 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
87. 0.551 0.551 ↑ 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.014..0.019 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
88. 1.298 1.298 ↑ 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.011 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
89. 1.287 1.287 ↑ 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.011 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))
90. 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)
91. 0.319 0.435 ↑ 1.0 1 29

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

92. 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.004..0.004 rows=1 loops=29)

  • Recheck Cond: (pick_job = pick_jobs.id)
  • Heap Blocks: exact=6
93. 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)
94. 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.020..0.021 rows=0 loops=29)

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

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

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