explain.depesz.com

PostgreSQL's explain analyze made readable

Result: VPSH

Settings
# exclusive inclusive rows x rows loops node
1. 9.562 1,920.362 ↓ 1.2 20,244 1

Gather (cost=6,053.64..462,823.36 rows=17,350 width=3,059) (actual time=1,756.746..1,920.362 rows=20,244 loops=1)

  • Workers Planned: 4
  • Workers Launched: 4
2. 6.953 1,890.556 ↑ 1.1 4,049 5 / 5

Hash Left Join (cost=5,053.64..318,382.23 rows=4,338 width=2,694) (actual time=1,750.086..1,890.556 rows=4,049 loops=5)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 3.581 1,883.599 ↑ 1.1 4,049 5 / 5

Hash Left Join (cost=5,043.42..318,355.73 rows=4,338 width=2,694) (actual time=1,750.062..1,883.599 rows=4,049 loops=5)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 3.548 1,880.014 ↑ 1.1 4,049 5 / 5

Hash Left Join (cost=5,033.19..318,334.12 rows=4,338 width=1,650) (actual time=1,750.044..1,880.014 rows=4,049 loops=5)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 6.979 1,876.462 ↑ 1.1 4,049 5 / 5

Hash Left Join (cost=5,011.27..318,300.80 rows=4,338 width=1,562) (actual time=1,750.025..1,876.462 rows=4,049 loops=5)

  • Hash Cond: (si.currency_id = c.id)
6. 10.498 1,869.469 ↑ 1.1 4,049 5 / 5

Nested Loop Left Join (cost=5,010.13..318,280.24 rows=4,338 width=1,054) (actual time=1,749.994..1,869.469 rows=4,049 loops=5)

7. 5.469 1,850.873 ↑ 1.1 4,049 5 / 5

Hash Left Join (cost=5,009.70..316,121.97 rows=4,338 width=1,054) (actual time=1,749.979..1,850.873 rows=4,049 loops=5)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 3.737 1,843.718 ↑ 1.1 4,049 5 / 5

Hash Left Join (cost=4,798.58..315,899.43 rows=4,338 width=1,044) (actual time=1,748.278..1,843.718 rows=4,049 loops=5)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 5.097 1,839.946 ↑ 1.1 4,049 5 / 5

Nested Loop (cost=4,790.27..315,831.47 rows=4,338 width=1,034) (actual time=1,748.224..1,839.946 rows=4,049 loops=5)

10. 7.920 1,822.703 ↑ 1.1 4,049 5 / 5

Nested Loop (cost=4,789.85..313,434.35 rows=4,338 width=1,026) (actual time=1,748.207..1,822.703 rows=4,049 loops=5)

11. 20.911 1,806.685 ↑ 1.1 4,049 5 / 5

Hash Join (cost=4,789.43..311,530.44 rows=4,338 width=1,026) (actual time=1,748.180..1,806.685 rows=4,049 loops=5)

  • Hash Cond: (si.originatordivision_id = od_db.id)
12. 89.101 1,785.751 ↑ 1.2 51,029 5 / 5

Nested Loop (cost=4,788.24..311,321.59 rows=60,726 width=420) (actual time=1,412.264..1,785.751 rows=51,029 loops=5)

13. 758.436 1,543.318 ↑ 1.2 51,111 5 / 5

Parallel Hash Join (cost=4,787.81..273,547.38 rows=60,746 width=228) (actual time=1,412.234..1,543.318 rows=51,111 loops=5)

  • Hash Cond: (ps_eps.id = ps_ddeps.id)
14. 732.965 732.965 ↑ 1.2 1,208,086 5 / 5

Parallel Seq Scan on earlypaymentsettlement ps_eps (cost=0.00..264,805.63 rows=1,506,262 width=220) (actual time=0.007..732.965 rows=1,208,086 loops=5)

  • Filter: (creationdate >= '2018-01-01'::date)
  • Rows Removed by Filter: 65426
15. 30.921 51.917 ↑ 2.9 51,360 5 / 5

Parallel Hash (cost=2,899.58..2,899.58 rows=151,058 width=8) (actual time=51.917..51.917 rows=51,360 loops=5)

  • Buckets: 262144 Batches: 1 Memory Usage: 12192kB
16. 20.996 20.996 ↑ 2.9 51,360 5 / 5

Parallel Seq Scan on ddearlypaymentsettlement ps_ddeps (cost=0.00..2,899.58 rows=151,058 width=8) (actual time=0.006..20.996 rows=51,360 loops=5)

17. 153.332 153.332 ↑ 1.0 1 255,553 / 5

Index Scan using supplierinvoice_pkey on supplierinvoice si (cost=0.43..0.62 rows=1 width=208) (actual time=0.003..0.003 rows=1 loops=255,553)

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 0
18. 0.004 0.023 ↑ 1.0 1 5 / 5

Hash (cost=1.18..1.18 rows=1 width=622) (actual time=0.023..0.023 rows=1 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
19. 0.019 0.019 ↑ 1.0 1 5 / 5

Seq Scan on divisionbase od_db (cost=0.00..1.18 rows=1 width=622) (actual time=0.017..0.019 rows=1 loops=5)

  • Filter: (buyer_id = 66895525)
  • Rows Removed by Filter: 13
20. 8.098 8.098 ↑ 1.0 1 20,244 / 5

Index Scan using ddsuppliercentricearlypaymentsettlement_pkey on ddsuppliercentricearlypaymentsettlement ddsceps (cost=0.42..0.44 rows=1 width=16) (actual time=0.002..0.002 rows=1 loops=20,244)

  • Index Cond: (id = ps_eps.id)
21. 12.146 12.146 ↑ 1.0 1 20,244 / 5

Index Scan using financingcontextbase_pkey on financingcontextbase ps_ddps_fc_fcb (cost=0.42..0.55 rows=1 width=24) (actual time=0.003..0.003 rows=1 loops=20,244)

  • Index Cond: (id = ddsceps.financingcontext_id)
22. 0.005 0.035 ↑ 1.0 1 5 / 5

Hash (cost=8.29..8.29 rows=1 width=26) (actual time=0.034..0.035 rows=1 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
23. 0.030 0.030 ↑ 1.0 1 5 / 5

Index Scan using corporatebase_pkey on corporatebase od_c_cb (cost=0.28..8.29 rows=1 width=26) (actual time=0.029..0.030 rows=1 loops=5)

  • Index Cond: (id = 66895525)
24. 0.719 1.686 ↑ 1.0 1,650 5 / 5

Hash (cost=190.50..190.50 rows=1,650 width=26) (actual time=1.686..1.686 rows=1,650 loops=5)

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
25. 0.967 0.967 ↑ 1.0 1,650 5 / 5

Seq Scan on corporatebase s_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.015..0.967 rows=1,650 loops=5)

26. 8.098 8.098 ↑ 1.0 1 20,244 / 5

Index Scan using arpimportbatch_pkey on arpimportbatch ib (cost=0.43..0.50 rows=1 width=16) (actual time=0.002..0.002 rows=1 loops=20,244)

  • Index Cond: (si.importbatch_id = id)
27. 0.005 0.014 ↑ 1.0 6 5 / 5

Hash (cost=1.06..1.06 rows=6 width=524) (actual time=0.013..0.014 rows=6 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
28. 0.009 0.009 ↑ 1.0 6 5 / 5

Seq Scan on crxcurrency c (cost=0.00..1.06 rows=6 width=524) (actual time=0.006..0.009 rows=6 loops=5)

29. 0.001 0.004 ↓ 0.0 0 5 / 5

Hash (cost=15.30..15.30 rows=530 width=104) (actual time=0.004..0.004 rows=0 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
30. 0.003 0.003 ↓ 0.0 0 5 / 5

Seq Scan on earlypaymentadvice eps_epa (cost=0.00..15.30 rows=530 width=104) (actual time=0.003..0.003 rows=0 loops=5)

31. 0.001 0.004 ↓ 0.0 0 5 / 5

Hash (cost=10.10..10.10 rows=10 width=1,052) (actual time=0.004..0.004 rows=0 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
32. 0.003 0.003 ↓ 0.0 0 5 / 5

Seq Scan on invoicepaymentadvice ipa (cost=0.00..10.10 rows=10 width=1,052) (actual time=0.003..0.003 rows=0 loops=5)

33. 0.001 0.004 ↓ 0.0 0 5 / 5

Hash (cost=10.10..10.10 rows=10 width=16) (actual time=0.004..0.004 rows=0 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
34. 0.003 0.003 ↓ 0.0 0 5 / 5

Seq Scan on bankpaymenttransaction bpt (cost=0.00..10.10 rows=10 width=16) (actual time=0.003..0.003 rows=0 loops=5)

35.          

SubPlan (for Gather)

36. 20.244 20.244 ↑ 1.0 1 20,244

Aggregate (cost=8.15..8.16 rows=1 width=8) (actual time=0.001..0.001 rows=1 loops=20,244)

37. 0.000 0.000 ↓ 0.0 0 20,244

Index Scan using bankpaymenttransaction_mapping_idx on bankpaymenttransaction bpt_1 (cost=0.14..8.15 rows=1 width=8) (actual time=0.000..0.000 rows=0 loops=20,244)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 5.087 ms
Execution time : 1,925.978 ms