explain.depesz.com

PostgreSQL's explain analyze made readable

Result: iMPl

Settings
# exclusive inclusive rows x rows loops node
1. 14.702 528.248 ↑ 533.9 172 1

Gather (cost=23,003.27..813,004.73 rows=91,831 width=1,810) (actual time=516.052..528.248 rows=172 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 0.073 513.202 ↑ 671.3 57 3 / 3

Hash Left Join (cost=22,003.27..52,332.79 rows=38,263 width=1,655) (actual time=508.786..513.202 rows=57 loops=3)

  • Hash Cond: (fi_eps.earlypaymentmapping_id = fi_bpt.mapping_id)
3. 0.069 513.125 ↑ 671.3 57 3 / 3

Hash Left Join (cost=21,993.04..52,179.07 rows=38,263 width=1,655) (actual time=508.767..513.125 rows=57 loops=3)

  • Hash Cond: (fi_si.paymentadvice_id = fi_ipa.id)
4. 0.077 513.051 ↑ 671.3 57 3 / 3

Hash Left Join (cost=21,982.82..52,068.40 rows=38,263 width=611) (actual time=508.748..513.051 rows=57 loops=3)

  • Hash Cond: (fi_eps.earlypaymentadvice_id = fi_eps_epa.id)
5. 0.080 512.204 ↑ 671.3 57 3 / 3

Nested Loop Left Join (cost=21,950.55..51,935.70 rows=38,263 width=597) (actual time=507.967..512.204 rows=57 loops=3)

6. 0.072 511.952 ↑ 671.3 57 3 / 3

Hash Left Join (cost=21,950.12..32,899.57 rows=38,263 width=597) (actual time=507.946..511.952 rows=57 loops=3)

  • Hash Cond: (si.currency_id = c.id)
7. 0.091 511.864 ↑ 671.3 57 3 / 3

Hash Left Join (cost=21,948.99..32,727.05 rows=38,263 width=601) (actual time=507.915..511.864 rows=57 loops=3)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 0.074 510.209 ↑ 671.3 57 3 / 3

Hash Left Join (cost=21,737.86..32,415.23 rows=38,263 width=591) (actual time=506.323..510.209 rows=57 loops=3)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 0.824 508.573 ↑ 671.3 57 3 / 3

Parallel Hash Left Join (cost=21,526.74..32,103.41 rows=38,263 width=581) (actual time=504.745..508.573 rows=57 loops=3)

  • Hash Cond: (fi_ps_apfeps.financingcontext_id = fi_ps_apffc_fc_afc.id)
10. 0.075 422.296 ↑ 671.3 57 3 / 3

Hash Left Join (cost=14,381.65..24,857.88 rows=38,263 width=465) (actual time=418.720..422.296 rows=57 loops=3)

  • Hash Cond: (ps_apfeps_t_apfda.bank_id = ps_eps_t_bc_cb.id)
11. 0.093 420.385 ↑ 671.3 57 3 / 3

Hash Left Join (cost=14,170.52..24,546.06 rows=38,263 width=455) (actual time=416.869..420.385 rows=57 loops=3)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
12. 1.303 420.252 ↑ 671.3 57 3 / 3

Parallel Hash Left Join (cost=14,169.07..24,422.89 rows=38,263 width=455) (actual time=416.797..420.252 rows=57 loops=3)

  • Hash Cond: (ps_apfeps.financingcontext_id = ps_apffc_fc_fcb.id)
13. 119.539 284.927 ↑ 671.3 57 3 / 3

Parallel Hash Join (cost=4,325.66..14,479.03 rows=38,263 width=447) (actual time=281.747..284.927 rows=57 loops=3)

  • Hash Cond: (ps_apfeps.id = ps_eps.id)
14. 86.152 86.152 ↑ 1.3 277,103 3 / 3

Parallel Seq Scan on apfearlypaymentsettlement ps_apfeps (cost=0.00..8,758.79 rows=346,379 width=24) (actual time=0.006..86.152 rows=277,103 loops=3)

15. 4.313 79.236 ↑ 3,088.2 57 3 / 3

Parallel Hash (cost=2,125.31..2,125.31 rows=176,028 width=431) (actual time=79.236..79.236 rows=57 loops=3)

  • Buckets: 1048576 Batches: 1 Memory Usage: 8320kB
16. 0.115 74.923 ↑ 3,088.2 57 3 / 3

Merge Join (cost=1,541.40..2,125.31 rows=176,028 width=431) (actual time=3.626..74.923 rows=57 loops=3)

  • Merge Cond: (si.nettingbundle_id = nb.id)
17. 9.899 71.322 ↑ 27,474.5 58 3 / 3

Nested Loop (cost=0.86..1,786,202.47 rows=1,593,520 width=371) (actual time=0.165..71.322 rows=58 loops=3)

18. 11.325 11.325 ↑ 65.6 25,049 3 / 3

Parallel Index Scan using supplierinvoice_nettingbundle_idx on supplierinvoice si (cost=0.43..784,438.39 rows=1,642,460 width=191) (actual time=0.024..11.325 rows=25,049 loops=3)

19. 50.098 50.098 ↓ 0.0 0 75,147 / 3

Index Scan using earlypaymentsettlement_invoice_idx on earlypaymentsettlement ps_eps (cost=0.43..0.61 rows=1 width=196) (actual time=0.002..0.002 rows=0 loops=75,147)

  • Index Cond: (invoice_id = si.id)
20. 0.168 3.486 ↓ 7.6 144 3 / 3

Sort (cost=1,540.54..1,540.59 rows=19 width=68) (actual time=3.448..3.486 rows=144 loops=3)

  • Sort Key: nb.id
  • Sort Method: quicksort Memory: 49kB
  • Worker 0: Sort Method: quicksort Memory: 49kB
  • Worker 1: Sort Method: quicksort Memory: 49kB
21. 0.640 3.318 ↓ 9.1 172 3 / 3

Nested Loop Left Join (cost=1.29..1,540.14 rows=19 width=68) (actual time=0.082..3.318 rows=172 loops=3)

  • Join Filter: (fi_si.originatordivision_id = od_db.id)
  • Rows Removed by Join Filter: 1286
22. 0.194 2.162 ↓ 9.1 172 3 / 3

Nested Loop (cost=1.29..1,535.15 rows=19 width=56) (actual time=0.052..2.162 rows=172 loops=3)

23. 0.147 1.452 ↓ 9.1 172 3 / 3

Nested Loop (cost=0.86..1,522.97 rows=19 width=56) (actual time=0.036..1.452 rows=172 loops=3)

24. 0.209 0.789 ↓ 1.2 172 3 / 3

Nested Loop (cost=0.43..1,457.55 rows=146 width=56) (actual time=0.020..0.789 rows=172 loops=3)

25. 0.064 0.064 ↑ 1.0 172 3 / 3

Seq Scan on nettingbundle nb (cost=0.00..3.72 rows=172 width=16) (actual time=0.011..0.064 rows=172 loops=3)

26. 0.516 0.516 ↑ 1.0 1 516 / 3

Index Scan using earlypaymentsettlement_invoice_idx on earlypaymentsettlement fi_eps (cost=0.43..8.45 rows=1 width=40) (actual time=0.003..0.003 rows=1 loops=516)

  • Index Cond: (invoice_id = nb.surplus_id)
  • Filter: (creationdate >= '2019-01-01'::date)
27. 0.516 0.516 ↑ 1.0 1 516 / 3

Index Scan using apfearlypaymentsettlement_pkey on apfearlypaymentsettlement fi_ps_apfeps (cost=0.42..0.45 rows=1 width=24) (actual time=0.003..0.003 rows=1 loops=516)

  • Index Cond: (id = fi_eps.id)
28. 0.516 0.516 ↑ 1.0 1 516 / 3

Index Scan using supplierinvoice_pkey on supplierinvoice fi_si (cost=0.43..0.64 rows=1 width=24) (actual time=0.003..0.003 rows=1 loops=516)

  • Index Cond: (id = fi_eps.invoice_id)
29. 0.502 0.516 ↑ 1.8 8 516 / 3

Materialize (cost=0.00..1.21 rows=14 width=28) (actual time=0.000..0.003 rows=8 loops=516)

30. 0.014 0.014 ↑ 1.0 14 3 / 3

Seq Scan on divisionbase od_db (cost=0.00..1.14 rows=14 width=28) (actual time=0.006..0.014 rows=14 loops=3)

31. 73.868 134.022 ↑ 1.3 131,499 3 / 3

Parallel Hash (cost=7,788.74..7,788.74 rows=164,374 width=24) (actual time=134.021..134.022 rows=131,499 loops=3)

  • Buckets: 524288 Batches: 1 Memory Usage: 26688kB
32. 60.154 60.154 ↑ 1.3 131,499 3 / 3

Parallel Seq Scan on financingcontextbase ps_apffc_fc_fcb (cost=0.00..7,788.74 rows=164,374 width=24) (actual time=0.007..60.154 rows=131,499 loops=3)

33. 0.013 0.040 ↑ 1.0 20 3 / 3

Hash (cost=1.20..1.20 rows=20 width=16) (actual time=0.040..0.040 rows=20 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
34. 0.027 0.027 ↑ 1.0 20 3 / 3

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.20 rows=20 width=16) (actual time=0.019..0.027 rows=20 loops=3)

35. 0.726 1.836 ↑ 1.0 1,650 3 / 3

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
36. 1.110 1.110 ↑ 1.0 1,650 3 / 3

Seq Scan on corporatebase ps_eps_t_bc_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.006..1.110 rows=1,650 loops=3)

37. 45.402 85.453 ↑ 1.2 79,932 3 / 3

Parallel Hash (cost=5,896.15..5,896.15 rows=99,915 width=132) (actual time=85.453..85.453 rows=79,932 loops=3)

  • Buckets: 262144 Batches: 1 Memory Usage: 20832kB
38. 40.051 40.051 ↑ 1.2 79,932 3 / 3

Parallel Seq Scan on apffinancingcontext fi_ps_apffc_fc_afc (cost=0.00..5,896.15 rows=99,915 width=132) (actual time=0.006..40.051 rows=79,932 loops=3)

39. 0.710 1.562 ↑ 1.0 1,650 3 / 3

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
40. 0.852 0.852 ↑ 1.0 1,650 3 / 3

Seq Scan on corporatebase od_c_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.003..0.852 rows=1,650 loops=3)

41. 0.711 1.564 ↑ 1.0 1,650 3 / 3

Hash (cost=190.50..190.50 rows=1,650 width=26) (actual time=1.563..1.564 rows=1,650 loops=3)

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
42. 0.853 0.853 ↑ 1.0 1,650 3 / 3

Seq Scan on corporatebase s_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.002..0.853 rows=1,650 loops=3)

43. 0.006 0.016 ↑ 1.0 6 3 / 3

Hash (cost=1.06..1.06 rows=6 width=12) (actual time=0.015..0.016 rows=6 loops=3)

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

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

45. 0.172 0.172 ↑ 1.0 1 172 / 3

Index Scan using arpimportbatch_pkey on arpimportbatch ib (cost=0.43..0.50 rows=1 width=16) (actual time=0.003..0.003 rows=1 loops=172)

  • Index Cond: (si.importbatch_id = id)
46. 0.405 0.770 ↑ 1.0 945 3 / 3

Hash (cost=20.45..20.45 rows=945 width=30) (actual time=0.767..0.770 rows=945 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 68kB
47. 0.365 0.365 ↑ 1.0 945 3 / 3

Seq Scan on earlypaymentadvice fi_eps_epa (cost=0.00..20.45 rows=945 width=30) (actual time=0.007..0.365 rows=945 loops=3)

48. 0.001 0.005 ↓ 0.0 0 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
49. 0.004 0.004 ↓ 0.0 0 3 / 3

Seq Scan on invoicepaymentadvice fi_ipa (cost=0.00..10.10 rows=10 width=1,052) (actual time=0.004..0.004 rows=0 loops=3)

50. 0.001 0.004 ↓ 0.0 0 3 / 3

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

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

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

52.          

SubPlan (for Gather)

53. 0.344 0.344 ↑ 1.0 1 172

Aggregate (cost=8.15..8.16 rows=1 width=8) (actual time=0.001..0.002 rows=1 loops=172)

54. 0.000 0.000 ↓ 0.0 0 172

Index Scan using bankpaymenttransaction_mapping_idx on bankpaymenttransaction bpt (cost=0.14..8.15 rows=1 width=8) (actual time=0.000..0.000 rows=0 loops=172)

  • Index Cond: (mapping_id = fi_eps.maturitypaymentmapping_id)
Planning time : 8.534 ms
Execution time : 528.706 ms