explain.depesz.com

PostgreSQL's explain analyze made readable

Result: T9bm

Settings
# exclusive inclusive rows x rows loops node
1. 8.646 530.373 ↓ 1.4 20,244 1

Gather (cost=10,739.15..166,409.86 rows=14,966 width=3,059) (actual time=375.636..530.373 rows=20,244 loops=1)

  • Workers Planned: 3
  • Workers Launched: 3
2. 4.708 501.483 ↓ 1.0 5,061 4 / 4

Hash Left Join (cost=9,739.15..41,678.45 rows=4,828 width=2,694) (actual time=369.991..501.483 rows=5,061 loops=4)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 4.898 496.771 ↓ 1.0 5,061 4 / 4

Hash Left Join (cost=9,728.93..41,650.11 rows=4,828 width=2,694) (actual time=369.972..496.771 rows=5,061 loops=4)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 4.480 491.869 ↓ 1.0 5,061 4 / 4

Hash Left Join (cost=9,718.70..41,627.21 rows=4,828 width=1,650) (actual time=369.954..491.869 rows=5,061 loops=4)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 4.767 487.385 ↓ 1.0 5,061 4 / 4

Hash Left Join (cost=9,696.78..41,592.62 rows=4,828 width=1,562) (actual time=369.930..487.385 rows=5,061 loops=4)

  • Hash Cond: (si.currency_id = c.id)
6. 8.407 482.601 ↓ 1.0 5,061 4 / 4

Nested Loop Left Join (cost=9,695.64..41,569.85 rows=4,828 width=1,054) (actual time=369.889..482.601 rows=5,061 loops=4)

7. 4.707 464.072 ↓ 1.0 5,061 4 / 4

Hash Left Join (cost=9,695.21..39,167.80 rows=4,828 width=1,054) (actual time=369.871..464.072 rows=5,061 loops=4)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 4.660 457.789 ↓ 1.0 5,061 4 / 4

Hash Left Join (cost=9,484.09..38,943.97 rows=4,828 width=1,044) (actual time=368.281..457.789 rows=5,061 loops=4)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 5.019 451.413 ↓ 1.0 5,061 4 / 4

Hash Left Join (cost=9,272.96..38,720.13 rows=4,828 width=1,034) (actual time=366.550..451.413 rows=5,061 loops=4)

  • Hash Cond: (si.originatordivision_id = od_db.id)
10. 8.021 446.359 ↓ 1.0 5,061 4 / 4

Nested Loop (cost=9,271.65..38,702.31 rows=4,828 width=428) (actual time=366.484..446.359 rows=5,061 loops=4)

11. 5.503 428.216 ↓ 1.0 5,061 4 / 4

Nested Loop (cost=9,271.22..36,034.42 rows=4,828 width=428) (actual time=366.470..428.216 rows=5,061 loops=4)

12. 11.908 407.496 ↓ 1.1 5,072 4 / 4

Nested Loop (cost=9,270.79..33,031.56 rows=4,829 width=236) (actual time=366.453..407.496 rows=5,072 loops=4)

13. 28.229 385.443 ↑ 1.0 5,072 4 / 4

Merge Join (cost=9,270.36..15,939.82 rows=5,104 width=32) (actual time=366.429..385.443 rows=5,072 loops=4)

  • Merge Cond: (ps_ddeps.id = ddsceps.id)
14. 28.006 28.006 ↑ 1.3 64,200 4 / 4

Parallel Index Only Scan using ddearlypaymentsettlement_pkey on ddearlypaymentsettlement ps_ddeps (cost=0.42..6,332.80 rows=82,838 width=8) (actual time=0.021..28.006 rows=64,200 loops=4)

  • Heap Fetches: 256799
15. 14.632 329.208 ↓ 1.3 19,907 4 / 4

Sort (cost=9,269.94..9,309.49 rows=15,822 width=24) (actual time=323.511..329.208 rows=19,907 loops=4)

  • Sort Key: ddsceps.id
  • Sort Method: quicksort Memory: 2354kB
  • Worker 0: Sort Method: quicksort Memory: 2354kB
  • Worker 1: Sort Method: quicksort Memory: 2354kB
  • Worker 2: Sort Method: quicksort Memory: 2354kB
16. 107.352 314.576 ↓ 1.3 20,289 4 / 4

Hash Join (cost=3,088.17..8,166.38 rows=15,822 width=24) (actual time=288.332..314.576 rows=20,289 loops=4)

  • Hash Cond: (ddsceps.financingcontext_id = ddscfc.id)
17. 85.612 85.612 ↑ 1.0 256,798 4 / 4

Seq Scan on ddsuppliercentricearlypaymentsettlement ddsceps (cost=0.00..3,956.99 rows=256,799 width=16) (actual time=0.008..85.612 rows=256,798 loops=4)

18. 6.406 121.612 ↓ 1.6 15,179 4 / 4

Hash (cost=2,968.71..2,968.71 rows=9,557 width=8) (actual time=121.612..121.612 rows=15,179 loops=4)

  • Buckets: 16384 Batches: 1 Memory Usage: 721kB
19. 63.382 115.206 ↓ 1.6 15,179 4 / 4

Hash Join (cost=21.36..2,968.71 rows=9,557 width=8) (actual time=97.680..115.206 rows=15,179 loops=4)

  • Hash Cond: (ddscfc.paa_id = paa.id)
20. 51.719 51.719 ↑ 1.0 155,112 4 / 4

Seq Scan on ddsuppliercentricfinancingcontext ddscfc (cost=0.00..2,539.12 rows=155,112 width=16) (actual time=0.008..51.719 rows=155,112 loops=4)

21. 0.039 0.105 ↑ 1.0 100 4 / 4

Hash (cost=20.11..20.11 rows=100 width=8) (actual time=0.104..0.105 rows=100 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 12kB
22. 0.066 0.066 ↑ 1.0 100 4 / 4

Index Scan using paa_buyer_idx on payablesapprovalagreement paa (cost=0.28..20.11 rows=100 width=8) (actual time=0.018..0.066 rows=100 loops=4)

  • Index Cond: (buyer_id = 66895525)
23. 10.145 10.145 ↑ 1.0 1 20,289 / 4

Index Scan using earlypaymentsettlement_pkey on earlypaymentsettlement ps_eps (cost=0.43..3.35 rows=1 width=220) (actual time=0.002..0.002 rows=1 loops=20,289)

  • Index Cond: (id = ps_ddeps.id)
  • Filter: (creationdate >= '2018-01-01'::date)
24. 15.217 15.217 ↑ 1.0 1 20,289 / 4

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=20,289)

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 0
25. 10.122 10.122 ↑ 1.0 1 20,244 / 4

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

  • Index Cond: (id = ddsceps.financingcontext_id)
26. 0.011 0.035 ↑ 1.0 14 4 / 4

Hash (cost=1.14..1.14 rows=14 width=622) (actual time=0.035..0.035 rows=14 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
27. 0.024 0.024 ↑ 1.0 14 4 / 4

Seq Scan on divisionbase od_db (cost=0.00..1.14 rows=14 width=622) (actual time=0.016..0.024 rows=14 loops=4)

28. 0.740 1.716 ↑ 1.0 1,650 4 / 4

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
29. 0.976 0.976 ↑ 1.0 1,650 4 / 4

Seq Scan on corporatebase od_c_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.006..0.976 rows=1,650 loops=4)

30. 0.708 1.576 ↑ 1.0 1,650 4 / 4

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
31. 0.868 0.868 ↑ 1.0 1,650 4 / 4

Seq Scan on corporatebase s_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.003..0.868 rows=1,650 loops=4)

32. 10.122 10.122 ↑ 1.0 1 20,244 / 4

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)
33. 0.007 0.017 ↑ 1.0 6 4 / 4

Hash (cost=1.06..1.06 rows=6 width=524) (actual time=0.017..0.017 rows=6 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
34. 0.010 0.010 ↑ 1.0 6 4 / 4

Seq Scan on crxcurrency c (cost=0.00..1.06 rows=6 width=524) (actual time=0.008..0.010 rows=6 loops=4)

35. 0.001 0.004 ↓ 0.0 0 4 / 4

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

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

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

37. 0.001 0.004 ↓ 0.0 0 4 / 4

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

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

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

39. 0.001 0.004 ↓ 0.0 0 4 / 4

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

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

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

41.          

SubPlan (for Gather)

42. 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)

43. 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 : 9.958 ms
Execution time : 536.129 ms