explain.depesz.com

PostgreSQL's explain analyze made readable

Result: h37H

Settings
# exclusive inclusive rows x rows loops node
1. 26.585 84.976 ↑ 94.8 51 1

Planning Time: 10.065 msGather (cost=2,951.60..49,432.40 rows=4,833 width=1,810) (actual time=33.136..84.976 rows=51 loops=1)

  • Workers Planned: 4
  • Workers Launched: 4
2. 58.371 58.391 ↑ 120.8 10 5 / 5

Hash Left Join (cost=1,951.60..8,451.41 rows=1,208 width=1,655) (actual time=21.860..58.391 rows=10 loops=5)

3. 0.000 0.020 ↑ 1.0 1 51 / 5

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

  • Hash Cond: (fi_eps.earlypaymentmapping_id = fi_bpt.mapping_id)
4. 58.363 58.363 ↑ 120.8 10 5 / 5

Hash Left Join (cost=1,941.37..8,436.65 rows=1,208 width=1,655) (actual time=21.844..58.363 rows=10 loops=5)

5. 0.000 0.004 ↓ 0.0 0 4 / 5

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

6. 0.000 0.010 ↓ 0.0 0 51 / 5

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

  • Hash Cond: (fi_si.paymentadvice_id = fi_ipa.id)
  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
7. 0.003 0.003 ↓ 0.0 0 4 / 5

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

8. 58.332 58.332 ↑ 120.8 10 5 / 5

Hash Left Join (cost=1,931.15..8,423.25 rows=1,208 width=611) (actual time=21.822..58.332 rows=10 loops=5)

9. 0.000 0.006 ↓ 0.0 0 4 / 5

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

  • Index Cond: (mapping_id = fi_eps.maturitypaymentmapping_id)
  • Hash Cond: (fi_eps.earlypaymentadvice_id = fi_eps_epa.id)
  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
10. 0.005 0.005 ↓ 0.0 0 4 / 5

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

11. 56.873 56.873 ↑ 120.8 10 5 / 5

Nested Loop Left Join (cost=1,898.88..8,387.82 rows=1,208 width=597) (actual time=20.375..56.873 rows=10 loops=5)

12. 0.000 1.434 ↑ 1.0 945 4 / 5

Hash (cost=20.45..20.45 rows=945 width=30) (actual time=1.791..1.792 rows=945 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 68kB
13. 0.314 0.314 ↑ 1.0 945 4 / 5

Seq Scan on earlypaymentadvice fi_eps_epa (cost=0.00..20.45 rows=945 width=30) (actual time=0.005..0.393 rows=945 loops=4)

14. 0.031 0.031 ↑ 1.0 1 51 / 5

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

15. 0.027 56.818 ↑ 120.8 10 5 / 5

Hash Left Join (cost=1,898.45..7,786.83 rows=1,208 width=597) (actual time=20.360..56.818 rows=10 loops=5)

  • Index Cond: (si.importbatch_id = id)
  • Hash Cond: (si.currency_id = c.id)
16. 56.777 56.777 ↑ 120.8 10 5 / 5

Hash Left Join (cost=1,897.32..7,780.29 rows=1,208 width=601) (actual time=20.331..56.777 rows=10 loops=5)

17. 0.000 0.014 ↑ 1.0 6 4 / 5

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

  • Hash Cond: (si.supplier_id = s_cb.id)
  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
18. 0.008 0.008 ↑ 1.0 6 4 / 5

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

19. 53.717 53.717 ↑ 120.8 10 5 / 5

Hash Left Join (cost=1,686.19..7,565.98 rows=1,208 width=591) (actual time=17.283..53.717 rows=10 loops=5)

20. 0.000 3.034 ↑ 1.0 1,650 4 / 5

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

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
21. 1.647 1.647 ↑ 1.0 1,650 4 / 5

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

22. 52.296 52.296 ↑ 120.8 10 5 / 5

Nested Loop Left Join (cost=1,475.07..7,351.67 rows=1,208 width=581) (actual time=15.877..52.296 rows=10 loops=5)

23. 0.000 1.393 ↑ 1.0 1,650 4 / 5

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
24. 0.798 0.798 ↑ 1.0 1,650 4 / 5

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

25. 52.240 52.240 ↑ 120.8 10 5 / 5

Nested Loop Left Join (cost=1,474.65..6,790.87 rows=1,208 width=465) (actual time=15.865..52.240 rows=10 loops=5)

26. 0.000 0.031 ↑ 1.0 1 51 / 5

Index Scan using apffinancingcontext_pkey on apffinancingcontext fi_ps_apffc_fc_afc (cost=0.42..0.46 rows=1 width=132) (actual time=0.003..0.003 rows=1 loops=51)

  • Index Cond: (fi_ps_apfeps.financingcontext_id = id)
27. 0.031 0.031 ↑ 1.0 1 51 / 5

Index Scan using financingcontextbase_pkey on financingcontextbase ps_apffc_fc_fcb (cost=0.42..0.47 rows=1 width=24) (actual time=0.003..0.003 rows=1 loops=51)

28. 0.072 52.183 ↑ 120.8 10 5 / 5

Hash Left Join (cost=1,474.22..6,217.33 rows=1,208 width=457) (actual time=15.853..52.183 rows=10 loops=5)

  • Index Cond: (id = ps_apfeps.financingcontext_id)
  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
29. 52.046 52.046 ↑ 120.8 10 5 / 5

Nested Loop (cost=1,471.04..6,197.54 rows=1,208 width=447) (actual time=15.730..52.046 rows=10 loops=5)

30. 0.000 0.065 ↑ 1.0 20 4 / 5

Hash (cost=2.93..2.93 rows=20 width=26) (actual time=0.081..0.081 rows=20 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
31. 0.054 0.054 ↑ 1.0 20 4 / 5

Merge Right Join (cost=2.05..2.93 rows=20 width=26) (actual time=0.044..0.068 rows=20 loops=4)

32. 51.986 51.986 ↑ 926.5 10 5 / 5

Merge Join (cost=1,470.62..2,053.72 rows=9,265 width=431) (actual time=15.719..51.986 rows=10 loops=5)

33. 0.000 0.041 ↑ 1.0 1 51 / 5

Index Scan using apfearlypaymentsettlement_pkey on apfearlypaymentsettlement ps_apfeps (cost=0.42..0.45 rows=1 width=24) (actual time=0.004..0.004 rows=1 loops=51)

  • Merge Cond: (si.nettingbundle_id = nb.id)
  • Merge Cond: (ps_eps_t_bc_cb.id = ps_apfeps_t_apfda.bank_id)
  • Index Cond: (id = ps_eps.id)
34. 0.029 0.029 ↑ 1.0 20 4 / 5

Sort (cost=1.63..1.68 rows=20 width=16) (actual time=0.030..0.036 rows=20 loops=4)

35. 48.089 48.089 ↑ 45,529.1 35 5 / 5

Nested Loop (cost=0.86..1,786,202.47 rows=1,593,520 width=371) (actual time=11.594..48.089 rows=35 loops=5)

36. 3.857 3.857 ↓ 35.0 35 4 / 5

Materialize (cost=1,469.75..1,469.76 rows=1 width=68) (actual time=4.786..4.821 rows=35 loops=4)

37. 0.000 0.009 ↑ 275.0 6 4 / 5

Index Scan using corporatebase_pkey on corporatebase ps_eps_t_bc_cb (cost=0.28..234.48 rows=1,650 width=26) (actual time=0.008..0.011 rows=6 loops=4)

  • Worker 3: Sort Method: quicksort Memory: 25kB
  • Worker 2: Sort Method: quicksort Memory: 25kB
  • Worker 1: Sort Method: quicksort Memory: 25kB
  • Sort Method: quicksort Memory: 25kB
  • Sort Key: ps_apfeps_t_apfda.bank_id
38. 3.836 3.836 ↓ 35.0 35 4 / 5

Sort (cost=1,469.75..1,469.76 rows=1 width=68) (actual time=4.783..4.795 rows=35 loops=4)

39. 0.009 0.009 ↑ 1.0 20 4 / 5

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.20 rows=20 width=16) (actual time=0.003..0.011 rows=20 loops=4)

40. 7.149 7.149 ↑ 109.7 14,970 5 / 5

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.012..7.149 rows=14,970 loops=5)

41. 26.153 29.940 ↓ 0.0 0 74,849 / 5

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=74,849)

  • Worker 3: Sort Method: quicksort Memory: 32kB
  • Worker 2: Sort Method: quicksort Memory: 32kB
  • Worker 1: Sort Method: quicksort Memory: 32kB
  • Sort Method: quicksort Memory: 32kB
  • Sort Key: nb.id
  • Index Cond: (invoice_id = si.id)
42. 0.931 3.786 ↓ 51.0 51 4 / 5

Nested Loop Left Join (cost=1.29..1,469.74 rows=1 width=68) (actual time=0.104..4.733 rows=51 loops=4)

  • Rows Removed by Join Filter: 322
  • Join Filter: (fi_si.originatordivision_id = od_db.id)
43. 0.122 0.122 ↑ 2.0 7 204 / 5

Seq Scan on divisionbase od_db (cost=0.00..1.14 rows=14 width=28) (actual time=0.001..0.003 rows=7 loops=204)

44. 0.059 2.733 ↓ 51.0 51 4 / 5

Nested Loop (cost=1.29..1,468.43 rows=1 width=56) (actual time=0.097..3.416 rows=51 loops=4)

45. 2.551 2.551 ↓ 51.0 51 4 / 5

Nested Loop (cost=0.86..1,465.97 rows=1 width=56) (actual time=0.085..3.189 rows=51 loops=4)

46. 0.000 0.122 ↑ 1.0 1 204 / 5

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

  • Rows Removed by Join Filter: 809
  • Join Filter: (fi_ps_apfeps.apfda_id = fi_ps_apfeps_t_apfda.id)
  • Index Cond: (id = fi_eps.invoice_id)
47. 0.012 0.012 ↑ 1.0 5 4 / 5

Seq Scan on apfdebtoragreement fi_ps_apfeps_t_apfda (cost=0.00..1.25 rows=5 width=8) (actual time=0.011..0.015 rows=5 loops=4)

48. 0.580 2.300 ↓ 86.0 172 20 / 5

Materialize (cost=0.86..1,464.58 rows=2 width=64) (actual time=0.007..0.575 rows=172 loops=20)

  • Rows Removed by Filter: 15
  • Filter: (bank_id = 3053)
49. 0.468 1.720 ↓ 86.0 172 4 / 5

Nested Loop (cost=0.86..1,464.57 rows=2 width=64) (actual time=0.026..2.150 rows=172 loops=4)

50. 0.564 0.564 ↓ 12.3 172 4 / 5

Nested Loop (cost=0.43..1,457.55 rows=14 width=56) (actual time=0.015..0.705 rows=172 loops=4)

51. 0.367 0.688 ↑ 1.0 1 688 / 5

Index Scan using apfearlypaymentsettlement_pkey on apfearlypaymentsettlement fi_ps_apfeps (cost=0.42..0.50 rows=1 width=24) (actual time=0.005..0.005 rows=1 loops=688)

  • Index Cond: (id = fi_eps.id)
52. 0.046 0.046 ↑ 1.0 172 4 / 5

Seq Scan on nettingbundle nb (cost=0.00..3.72 rows=172 width=16) (actual time=0.004..0.057 rows=172 loops=4)

53. 0.275 0.275 ↑ 1.0 1 688 / 5

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

  • Index Cond: (invoice_id = nb.surplus_id)
  • Filter: (creationdate = '2019-02-01'::date)
Execution time : 85.549 ms