explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 9IxH

Settings
# exclusive inclusive rows x rows loops node
1. 11.786 12.583 ↓ 0.0 0 1

Gather (cost=2,951.15..49,431.95 rows=4,833 width=1,810) (actual time=11.764..12.583 rows=0 loops=1)

  • Workers Planned: 4
  • Workers Launched: 4
2. 0.000 0.797 ↓ 0.0 0 5 / 5

Hash Left Join (cost=1,951.15..8,450.96 rows=1,208 width=1,655) (actual time=0.797..0.797 rows=0 loops=5)

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

Hash Left Join (cost=1,940.92..8,436.20 rows=1,208 width=1,655) (actual time=0.796..0.797 rows=0 loops=5)

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

Hash Left Join (cost=1,930.70..8,422.80 rows=1,208 width=611) (actual time=0.796..0.796 rows=0 loops=5)

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

Nested Loop Left Join (cost=1,898.43..8,387.37 rows=1,208 width=597) (actual time=0.795..0.795 rows=0 loops=5)

6. 0.001 0.795 ↓ 0.0 0 5 / 5

Hash Left Join (cost=1,898.00..7,786.38 rows=1,208 width=597) (actual time=0.795..0.795 rows=0 loops=5)

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

Hash Left Join (cost=1,896.87..7,779.84 rows=1,208 width=601) (actual time=0.794..0.794 rows=0 loops=5)

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

Hash Left Join (cost=1,685.74..7,565.53 rows=1,208 width=591) (actual time=0.793..0.794 rows=0 loops=5)

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

Nested Loop Left Join (cost=1,474.62..7,351.22 rows=1,208 width=581) (actual time=0.793..0.793 rows=0 loops=5)

10. 0.001 0.793 ↓ 0.0 0 5 / 5

Nested Loop Left Join (cost=1,474.20..6,790.42 rows=1,208 width=465) (actual time=0.792..0.793 rows=0 loops=5)

11. 0.001 0.792 ↓ 0.0 0 5 / 5

Hash Left Join (cost=1,473.77..6,216.88 rows=1,208 width=457) (actual time=0.792..0.792 rows=0 loops=5)

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

Nested Loop (cost=1,470.59..6,197.09 rows=1,208 width=447) (actual time=0.791..0.791 rows=0 loops=5)

13. 0.001 0.791 ↓ 0.0 0 5 / 5

Merge Join (cost=1,470.17..2,053.27 rows=9,265 width=431) (actual time=0.791..0.791 rows=0 loops=5)

  • Merge Cond: (si.nettingbundle_id = nb.id)
14. 0.019 0.125 ↑ 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.124..0.125 rows=1 loops=5)

15. 0.030 0.030 ↑ 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.030 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.665 ↓ 0.0 0 5 / 5

Materialize (cost=1,469.30..1,469.31 rows=1 width=68) (actual time=0.665..0.665 rows=0 loops=5)

18. 0.019 0.662 ↓ 0.0 0 5 / 5

Sort (cost=1,469.30..1,469.31 rows=1 width=68) (actual time=0.662..0.662 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.643 ↓ 0.0 0 5 / 5

Nested Loop Left Join (cost=1.29..1,469.29 rows=1 width=68) (actual time=0.643..0.643 rows=0 loops=5)

  • Join Filter: (fi_si.originatordivision_id = od_db.id)
20. 0.000 0.642 ↓ 0.0 0 5 / 5

Nested Loop (cost=1.29..1,467.98 rows=1 width=56) (actual time=0.642..0.642 rows=0 loops=5)

  • Join Filter: (fi_ps_apfeps.apfda_id = fi_ps_apfeps_t_apfda.id)
21. 0.001 0.642 ↓ 0.0 0 5 / 5

Nested Loop (cost=1.29..1,466.68 rows=1 width=64) (actual time=0.642..0.642 rows=0 loops=5)

22. 0.000 0.641 ↓ 0.0 0 5 / 5

Nested Loop (cost=0.86..1,464.53 rows=1 width=56) (actual time=0.641..0.641 rows=0 loops=5)

23. 0.070 0.641 ↓ 0.0 0 5 / 5

Nested Loop (cost=0.43..1,457.55 rows=1 width=56) (actual time=0.640..0.641 rows=0 loops=5)

24. 0.055 0.055 ↑ 1.0 172 5 / 5

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

25. 0.516 0.516 ↓ 0.0 0 860 / 5

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=0 loops=860)

  • Index Cond: (invoice_id = nb.surplus_id)
  • Filter: (creationdate <= '2017-02-06'::date)
  • Rows Removed by Filter: 1
26. 0.000 0.000 ↓ 0.0 0 / 5

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

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

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

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

Seq Scan on apfdebtoragreement fi_ps_apfeps_t_apfda (cost=0.00..1.25 rows=4 width=8) (never executed)

  • Filter: (buyer_id = 67002626)
29. 0.000 0.000 ↓ 0.0 0 / 5

Seq Scan on divisionbase od_db (cost=0.00..1.14 rows=14 width=28) (never executed)

30. 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)
31. 0.000 0.000 ↓ 0.0 0 / 5

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

32. 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)
33. 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)

34. 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
35. 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)

36. 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)
37. 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)
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 od_c_cb (cost=0.00..190.50 rows=1,650 width=26) (never executed)

40. 0.000 0.000 ↓ 0.0 0 / 5

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

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

42. 0.000 0.000 ↓ 0.0 0 / 5

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

43. 0.000 0.000 ↓ 0.0 0 / 5

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

44. 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)
45. 0.000 0.000 ↓ 0.0 0 / 5

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

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

47. 0.000 0.000 ↓ 0.0 0 / 5

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

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

49. 0.000 0.000 ↓ 0.0 0 / 5

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

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

51.          

SubPlan (for Gather)

52. 0.000 0.000 ↓ 0.0 0

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

53. 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 : 9.917 ms
Execution time : 12.924 ms