explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 21kf

Settings
# exclusive inclusive rows x rows loops node
1. 10.880 11.031 ↓ 0.0 0 1

Gather (cost=1,507.13..47,987.94 rows=4,833 width=1,810) (actual time=10.884..11.031 rows=0 loops=1)

  • Workers Planned: 4
  • Workers Launched: 4
2. 0.001 0.151 ↓ 0.0 0 5 / 5

Hash Left Join (cost=507.13..7,006.95 rows=1,208 width=1,655) (actual time=0.151..0.151 rows=0 loops=5)

  • Hash Cond: (fi_eps.earlypaymentmapping_id = fi_bpt.mapping_id)
3. 0.000 0.150 ↓ 0.0 0 5 / 5

Hash Left Join (cost=496.91..6,992.18 rows=1,208 width=1,655) (actual time=0.150..0.150 rows=0 loops=5)

  • Hash Cond: (fi_si.paymentadvice_id = fi_ipa.id)
4. 0.001 0.150 ↓ 0.0 0 5 / 5

Hash Left Join (cost=486.68..6,978.79 rows=1,208 width=611) (actual time=0.149..0.150 rows=0 loops=5)

  • Hash Cond: (fi_eps.earlypaymentadvice_id = fi_eps_epa.id)
5. 0.001 0.149 ↓ 0.0 0 5 / 5

Nested Loop Left Join (cost=454.42..6,943.35 rows=1,208 width=597) (actual time=0.149..0.149 rows=0 loops=5)

6. 0.000 0.148 ↓ 0.0 0 5 / 5

Hash Left Join (cost=453.99..6,342.37 rows=1,208 width=597) (actual time=0.148..0.148 rows=0 loops=5)

  • Hash Cond: (si.currency_id = c.id)
7. 0.000 0.148 ↓ 0.0 0 5 / 5

Hash Left Join (cost=452.85..6,335.82 rows=1,208 width=601) (actual time=0.148..0.148 rows=0 loops=5)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 0.001 0.148 ↓ 0.0 0 5 / 5

Hash Left Join (cost=241.73..6,121.52 rows=1,208 width=591) (actual time=0.147..0.148 rows=0 loops=5)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 0.000 0.147 ↓ 0.0 0 5 / 5

Nested Loop Left Join (cost=30.60..5,907.21 rows=1,208 width=581) (actual time=0.147..0.147 rows=0 loops=5)

10. 0.001 0.147 ↓ 0.0 0 5 / 5

Nested Loop Left Join (cost=30.18..5,346.40 rows=1,208 width=465) (actual time=0.146..0.147 rows=0 loops=5)

11. 0.001 0.146 ↓ 0.0 0 5 / 5

Hash Left Join (cost=29.76..4,772.86 rows=1,208 width=457) (actual time=0.146..0.146 rows=0 loops=5)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
12. 0.000 0.145 ↓ 0.0 0 5 / 5

Nested Loop (cost=26.58..4,753.07 rows=1,208 width=447) (actual time=0.145..0.145 rows=0 loops=5)

13. 0.001 0.145 ↓ 0.0 0 5 / 5

Merge Join (cost=26.15..609.26 rows=9,265 width=431) (actual time=0.145..0.145 rows=0 loops=5)

  • Merge Cond: (si.nettingbundle_id = nb.id)
14. 0.014 0.119 ↑ 1,593,520.0 1 5 / 5

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

15. 0.029 0.029 ↑ 43,222.6 38 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.013..0.029 rows=38 loops=5)

16. 0.076 0.076 ↓ 0.0 0 191 / 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=191)

  • Index Cond: (invoice_id = si.id)
17. 0.003 0.025 ↓ 0.0 0 5 / 5

Materialize (cost=25.29..25.30 rows=1 width=68) (actual time=0.025..0.025 rows=0 loops=5)

18. 0.016 0.022 ↓ 0.0 0 5 / 5

Sort (cost=25.29..25.29 rows=1 width=68) (actual time=0.021..0.022 rows=0 loops=5)

  • Sort Key: nb.id
  • Sort Method: quicksort Memory: 25kB
  • Worker 0: Sort Method: quicksort Memory: 25kB
  • Worker 1: Sort Method: quicksort Memory: 25kB
  • Worker 2: Sort Method: quicksort Memory: 25kB
  • Worker 3: Sort Method: quicksort Memory: 25kB
19. 0.001 0.006 ↓ 0.0 0 5 / 5

Nested Loop Left Join (cost=1.57..25.28 rows=1 width=68) (actual time=0.005..0.006 rows=0 loops=5)

20. 0.000 0.005 ↓ 0.0 0 5 / 5

Nested Loop (cost=1.44..25.12 rows=1 width=56) (actual time=0.005..0.005 rows=0 loops=5)

21. 0.001 0.005 ↓ 0.0 0 5 / 5

Nested Loop (cost=1.29..24.95 rows=1 width=64) (actual time=0.004..0.005 rows=0 loops=5)

22. 0.000 0.004 ↓ 0.0 0 5 / 5

Nested Loop (cost=0.86..16.51 rows=1 width=64) (actual time=0.004..0.004 rows=0 loops=5)

23. 0.004 0.004 ↓ 0.0 0 5 / 5

Index Scan using earlypaymentsettlement_creationdate_idx on earlypaymentsettlement fi_eps (cost=0.43..8.06 rows=1 width=40) (actual time=0.003..0.004 rows=0 loops=5)

  • Index Cond: (creationdate <= '2016-05-21'::date)
24. 0.000 0.000 ↓ 0.0 0 / 5

Index Scan using supplierinvoice_pkey on supplierinvoice fi_si (cost=0.43..8.45 rows=1 width=24) (never executed)

  • Index Cond: (id = fi_eps.invoice_id)
25. 0.000 0.000 ↓ 0.0 0 / 5

Index Scan using apfearlypaymentsettlement_pkey on apfearlypaymentsettlement fi_ps_apfeps (cost=0.42..8.44 rows=1 width=24) (never executed)

  • Index Cond: (id = fi_eps.id)
26. 0.000 0.000 ↓ 0.0 0 / 5

Index Scan using nettingbundle_surplus_idx on nettingbundle nb (cost=0.14..0.16 rows=1 width=16) (never executed)

  • Index Cond: (surplus_id = fi_si.id)
27. 0.000 0.000 ↓ 0.0 0 / 5

Index Scan using divisionbase_pkey on divisionbase od_db (cost=0.14..0.15 rows=1 width=28) (never executed)

  • Index Cond: (fi_si.originatordivision_id = id)
28. 0.000 0.000 ↓ 0.0 0 / 5

Index Scan using apfearlypaymentsettlement_pkey on apfearlypaymentsettlement ps_apfeps (cost=0.42..0.45 rows=1 width=24) (never executed)

  • Index Cond: (id = ps_eps.id)
29. 0.000 0.000 ↓ 0.0 0 / 5

Hash (cost=2.93..2.93 rows=20 width=26) (never executed)

30. 0.000 0.000 ↓ 0.0 0 / 5

Merge Right Join (cost=2.05..2.93 rows=20 width=26) (never executed)

  • Merge Cond: (ps_eps_t_bc_cb.id = ps_apfeps_t_apfda.bank_id)
31. 0.000 0.000 ↓ 0.0 0 / 5

Index Scan using corporatebase_pkey on corporatebase ps_eps_t_bc_cb (cost=0.28..234.48 rows=1,650 width=26) (never executed)

32. 0.000 0.000 ↓ 0.0 0 / 5

Sort (cost=1.63..1.68 rows=20 width=16) (never executed)

  • Sort Key: ps_apfeps_t_apfda.bank_id
33. 0.000 0.000 ↓ 0.0 0 / 5

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.20 rows=20 width=16) (never executed)

34. 0.000 0.000 ↓ 0.0 0 / 5

Index Scan using financingcontextbase_pkey on financingcontextbase ps_apffc_fc_fcb (cost=0.42..0.47 rows=1 width=24) (never executed)

  • Index Cond: (id = ps_apfeps.financingcontext_id)
35. 0.000 0.000 ↓ 0.0 0 / 5

Index Scan using apffinancingcontext_pkey on apffinancingcontext fi_ps_apffc_fc_afc (cost=0.42..0.46 rows=1 width=132) (never executed)

  • Index Cond: (fi_ps_apfeps.financingcontext_id = id)
36. 0.000 0.000 ↓ 0.0 0 / 5

Hash (cost=190.50..190.50 rows=1,650 width=26) (never executed)

37. 0.000 0.000 ↓ 0.0 0 / 5

Seq Scan on corporatebase od_c_cb (cost=0.00..190.50 rows=1,650 width=26) (never executed)

38. 0.000 0.000 ↓ 0.0 0 / 5

Hash (cost=190.50..190.50 rows=1,650 width=26) (never executed)

39. 0.000 0.000 ↓ 0.0 0 / 5

Seq Scan on corporatebase s_cb (cost=0.00..190.50 rows=1,650 width=26) (never executed)

40. 0.000 0.000 ↓ 0.0 0 / 5

Hash (cost=1.06..1.06 rows=6 width=12) (never executed)

41. 0.000 0.000 ↓ 0.0 0 / 5

Seq Scan on crxcurrency c (cost=0.00..1.06 rows=6 width=12) (never executed)

42. 0.000 0.000 ↓ 0.0 0 / 5

Index Scan using arpimportbatch_pkey on arpimportbatch ib (cost=0.43..0.50 rows=1 width=16) (never executed)

  • Index Cond: (si.importbatch_id = id)
43. 0.000 0.000 ↓ 0.0 0 / 5

Hash (cost=20.45..20.45 rows=945 width=30) (never executed)

44. 0.000 0.000 ↓ 0.0 0 / 5

Seq Scan on earlypaymentadvice fi_eps_epa (cost=0.00..20.45 rows=945 width=30) (never executed)

45. 0.000 0.000 ↓ 0.0 0 / 5

Hash (cost=10.10..10.10 rows=10 width=1,052) (never executed)

46. 0.000 0.000 ↓ 0.0 0 / 5

Seq Scan on invoicepaymentadvice fi_ipa (cost=0.00..10.10 rows=10 width=1,052) (never executed)

47. 0.000 0.000 ↓ 0.0 0 / 5

Hash (cost=10.10..10.10 rows=10 width=16) (never executed)

48. 0.000 0.000 ↓ 0.0 0 / 5

Seq Scan on bankpaymenttransaction fi_bpt (cost=0.00..10.10 rows=10 width=16) (never executed)

49.          

SubPlan (for Gather)

50. 0.000 0.000 ↓ 0.0 0

Aggregate (cost=8.15..8.16 rows=1 width=8) (never executed)

51. 0.000 0.000 ↓ 0.0 0

Index Scan using bankpaymenttransaction_mapping_idx on bankpaymenttransaction bpt (cost=0.14..8.15 rows=1 width=8) (never executed)

  • Index Cond: (mapping_id = fi_eps.maturitypaymentmapping_id)
Planning time : 8.319 ms
Execution time : 11.392 ms