explain.depesz.com

PostgreSQL's explain analyze made readable

Result: guT

Settings
# exclusive inclusive rows x rows loops node
1. 0.238 4.694 ↓ 1.9 86 1

Nested Loop Left Join (cost=3.68..2,828.84 rows=45 width=2,686) (actual time=1.278..4.694 rows=86 loops=1)

  • Join Filter: (fi_si.paymentadvice_id = fi_ipa.id)
2. 0.096 4.370 ↓ 1.9 86 1

Nested Loop Left Join (cost=3.68..2,444.32 rows=45 width=387) (actual time=1.261..4.370 rows=86 loops=1)

  • Join Filter: (bpt.mapping_id = fi_eps.earlypaymentmapping_id)
3. 0.075 4.274 ↓ 1.9 86 1

Nested Loop Left Join (cost=3.68..2,427.44 rows=45 width=387) (actual time=1.256..4.274 rows=86 loops=1)

4. 0.102 4.027 ↓ 1.9 86 1

Nested Loop Left Join (cost=3.41..2,414.28 rows=45 width=373) (actual time=1.247..4.027 rows=86 loops=1)

  • Join Filter: (scn.currency_id = c.id)
5. 0.131 3.925 ↓ 1.9 86 1

Nested Loop Left Join (cost=3.41..2,409.67 rows=45 width=377) (actual time=1.240..3.925 rows=86 loops=1)

6. 0.097 3.622 ↓ 1.9 86 1

Nested Loop Left Join (cost=2.98..2,042.47 rows=45 width=377) (actual time=1.229..3.622 rows=86 loops=1)

7. 0.349 3.353 ↓ 1.9 86 1

Nested Loop Left Join (cost=2.70..2,013.65 rows=45 width=367) (actual time=1.223..3.353 rows=86 loops=1)

  • Join Filter: (fi_si.originatordivision_id = od_db.id)
  • Rows Removed by Join Filter: 1118
8. 0.107 2.660 ↓ 1.9 86 1

Nested Loop Left Join (cost=2.42..1,914.89 rows=45 width=345) (actual time=1.146..2.660 rows=86 loops=1)

9. 0.143 2.553 ↓ 1.9 86 1

Nested Loop (cost=1.99..1,537.51 rows=45 width=315) (actual time=1.143..2.553 rows=86 loops=1)

10. 0.094 2.276 ↓ 16.8 67 1

Nested Loop Left Join (cost=1.71..1,529.81 rows=4 width=172) (actual time=1.134..2.276 rows=67 loops=1)

11. 0.085 2.048 ↓ 16.8 67 1

Nested Loop (cost=1.29..1,527.95 rows=4 width=56) (actual time=1.125..2.048 rows=67 loops=1)

  • Join Filter: (nb.surplus_id = fi_si.id)
12. 0.213 1.762 ↓ 16.8 67 1

Nested Loop (cost=0.86..1,525.34 rows=4 width=56) (actual time=1.115..1.762 rows=67 loops=1)

  • Join Filter: (fi_ps_apfeps.apfda_id = fi_ps_apfeps_t_apfda.id)
  • Rows Removed by Join Filter: 525
13. 0.083 1.377 ↓ 9.1 172 1

Nested Loop (cost=0.86..1,522.97 rows=19 width=64) (actual time=0.039..1.377 rows=172 loops=1)

14. 0.208 0.778 ↓ 1.2 172 1

Nested Loop (cost=0.43..1,457.55 rows=146 width=56) (actual time=0.030..0.778 rows=172 loops=1)

15. 0.054 0.054 ↑ 1.0 172 1

Seq Scan on nettingbundle nb (cost=0.00..3.72 rows=172 width=16) (actual time=0.010..0.054 rows=172 loops=1)

16. 0.516 0.516 ↑ 1.0 1 172

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

  • Index Cond: (invoice_id = nb.surplus_id)
  • Filter: (creationdate >= '2019-01-01'::date)
17. 0.516 0.516 ↑ 1.0 1 172

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

  • Index Cond: (id = fi_eps.id)
18. 0.166 0.172 ↑ 1.3 3 172

Materialize (cost=0.00..1.27 rows=4 width=8) (actual time=0.000..0.001 rows=3 loops=172)

19. 0.006 0.006 ↑ 1.0 4 1

Seq Scan on apfdebtoragreement fi_ps_apfeps_t_apfda (cost=0.00..1.25 rows=4 width=8) (actual time=0.004..0.006 rows=4 loops=1)

  • Filter: (buyer_id = 67002626)
  • Rows Removed by Filter: 16
20. 0.201 0.201 ↑ 1.0 1 67

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

  • Index Cond: (id = fi_eps.invoice_id)
21. 0.134 0.134 ↑ 1.0 1 67

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

  • Index Cond: (id = fi_ps_apfeps.financingcontext_id)
22. 0.134 0.134 ↑ 4.0 1 67

Index Scan using suppliercreditnote_nettingbundle_idx on suppliercreditnote scn (cost=0.28..1.88 rows=4 width=151) (actual time=0.002..0.002 rows=1 loops=67)

  • Index Cond: (nettingbundle_id = nb.id)
23. 0.000 0.000 ↓ 0.0 0 86

Index Scan using supplierinvoice_pkey on supplierinvoice ref_si (cost=0.43..8.21 rows=1 width=38) (actual time=0.000..0.000 rows=0 loops=86)

  • Index Cond: (id = scn.referencedinvoice_id)
24. 0.281 0.344 ↑ 1.0 14 86

Materialize (cost=0.28..89.35 rows=14 width=38) (actual time=0.000..0.004 rows=14 loops=86)

25. 0.015 0.063 ↑ 1.0 14 1

Nested Loop Left Join (cost=0.28..89.28 rows=14 width=38) (actual time=0.010..0.063 rows=14 loops=1)

26. 0.006 0.006 ↑ 1.0 14 1

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

27. 0.042 0.042 ↑ 1.0 1 14

Index Scan using corporatebase_pkey on corporatebase od_c_cb (cost=0.28..6.29 rows=1 width=26) (actual time=0.003..0.003 rows=1 loops=14)

  • Index Cond: (id = od_db.buyer_id)
28. 0.172 0.172 ↑ 1.0 1 86

Index Scan using corporatebase_pkey on corporatebase s_cb (cost=0.28..0.64 rows=1 width=26) (actual time=0.002..0.002 rows=1 loops=86)

  • Index Cond: (id = scn.supplier_id)
29. 0.172 0.172 ↑ 1.0 1 86

Index Scan using arpimportbatch_pkey on arpimportbatch ib (cost=0.43..8.16 rows=1 width=16) (actual time=0.002..0.002 rows=1 loops=86)

  • Index Cond: (scn.importbatch_id = id)
30. 0.000 0.000 ↑ 6.0 1 86

Materialize (cost=0.00..1.09 rows=6 width=12) (actual time=0.000..0.000 rows=1 loops=86)

31. 0.004 0.004 ↑ 6.0 1 1

Seq Scan on crxcurrency c (cost=0.00..1.06 rows=6 width=12) (actual time=0.003..0.004 rows=1 loops=1)

32. 0.172 0.172 ↑ 1.0 1 86

Index Scan using earlypaymentadvice_pkey on earlypaymentadvice fi_eps_epa (cost=0.28..0.29 rows=1 width=30) (actual time=0.002..0.002 rows=1 loops=86)

  • Index Cond: (id = fi_eps.earlypaymentadvice_id)
33. 0.000 0.000 ↓ 0.0 0 86

Materialize (cost=0.00..10.15 rows=10 width=16) (actual time=0.000..0.000 rows=0 loops=86)

34. 0.002 0.002 ↓ 0.0 0 1

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

35. 0.000 0.000 ↓ 0.0 0 86

Materialize (cost=0.00..10.15 rows=10 width=1,052) (actual time=0.000..0.000 rows=0 loops=86)

36. 0.002 0.002 ↓ 0.0 0 1

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

37.          

SubPlan (for Nested Loop Left Join)

38. 0.086 0.086 ↑ 1.0 1 86

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

39. 0.000 0.000 ↓ 0.0 0 86

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

  • Index Cond: (mapping_id = fi_eps.maturitypaymentmapping_id)
Planning time : 8.453 ms
Execution time : 4.968 ms