explain.depesz.com

PostgreSQL's explain analyze made readable

Result: hxh4

Settings
# exclusive inclusive rows x rows loops node
1. 0.039 1.003 ↓ 11.0 11 1

Nested Loop Left Join (cost=3.68..1,530.10 rows=1 width=2,686) (actual time=0.112..1.003 rows=11 loops=1)

  • Join Filter: (fi_si.paymentadvice_id = fi_ipa.id)
2. 0.016 0.953 ↓ 11.0 11 1

Nested Loop Left Join (cost=3.68..1,511.71 rows=1 width=387) (actual time=0.097..0.953 rows=11 loops=1)

  • Join Filter: (bpt.mapping_id = fi_eps.earlypaymentmapping_id)
3. 0.009 0.937 ↓ 11.0 11 1

Nested Loop Left Join (cost=3.68..1,501.48 rows=1 width=387) (actual time=0.095..0.937 rows=11 loops=1)

4. 0.011 0.906 ↓ 11.0 11 1

Nested Loop Left Join (cost=3.41..1,501.19 rows=1 width=373) (actual time=0.087..0.906 rows=11 loops=1)

  • Join Filter: (scn.currency_id = c.id)
5. 0.017 0.884 ↓ 11.0 11 1

Nested Loop Left Join (cost=3.41..1,500.05 rows=1 width=377) (actual time=0.083..0.884 rows=11 loops=1)

6. 0.018 0.845 ↓ 11.0 11 1

Nested Loop Left Join (cost=2.98..1,491.89 rows=1 width=377) (actual time=0.074..0.845 rows=11 loops=1)

7. 0.010 0.816 ↓ 11.0 11 1

Nested Loop Left Join (cost=2.70..1,491.25 rows=1 width=367) (actual time=0.068..0.816 rows=11 loops=1)

8. 0.019 0.784 ↓ 11.0 11 1

Nested Loop Left Join (cost=2.42..1,484.95 rows=1 width=357) (actual time=0.061..0.784 rows=11 loops=1)

  • Join Filter: (fi_si.originatordivision_id = od_db.id)
  • Rows Removed by Join Filter: 11
9. 0.015 0.754 ↓ 11.0 11 1

Nested Loop Left Join (cost=2.42..1,483.64 rows=1 width=345) (actual time=0.056..0.754 rows=11 loops=1)

10. 0.016 0.739 ↓ 11.0 11 1

Nested Loop Left Join (cost=1.99..1,467.64 rows=1 width=315) (actual time=0.053..0.739 rows=11 loops=1)

11. 0.011 0.701 ↓ 11.0 11 1

Nested Loop (cost=1.57..1,467.18 rows=1 width=199) (actual time=0.045..0.701 rows=11 loops=1)

12. 0.001 0.680 ↑ 1.0 1 1

Nested Loop (cost=1.29..1,465.25 rows=1 width=56) (actual time=0.039..0.680 rows=1 loops=1)

13. 0.002 0.673 ↑ 1.0 1 1

Nested Loop (cost=0.86..1,464.80 rows=1 width=56) (actual time=0.032..0.673 rows=1 loops=1)

14. 0.101 0.664 ↑ 1.0 1 1

Nested Loop (cost=0.43..1,457.55 rows=1 width=40) (actual time=0.023..0.664 rows=1 loops=1)

15. 0.047 0.047 ↑ 1.0 172 1

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

16. 0.516 0.516 ↓ 0.0 0 172

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

  • Index Cond: (id = nb.surplus_id)
  • Filter: (supplier_id = 6167)
  • Rows Removed by Filter: 1
17. 0.007 0.007 ↑ 1.0 1 1

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

  • Index Cond: (invoice_id = fi_si.id)
  • Filter: (creationdate >= '2019-01-01'::date)
18. 0.006 0.006 ↑ 1.0 1 1

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

  • Index Cond: (id = fi_eps.id)
19. 0.010 0.010 ↓ 2.8 11 1

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

  • Index Cond: (nettingbundle_id = nb.id)
20. 0.022 0.022 ↑ 1.0 1 11

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

  • Index Cond: (id = fi_ps_apfeps.financingcontext_id)
21. 0.000 0.000 ↓ 0.0 0 11

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

  • Index Cond: (id = scn.referencedinvoice_id)
22. 0.011 0.011 ↑ 7.0 2 11

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

23. 0.022 0.022 ↑ 1.0 1 11

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

  • Index Cond: (id = od_db.buyer_id)
24. 0.011 0.011 ↑ 1.0 1 11

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

  • Index Cond: (id = scn.supplier_id)
25. 0.022 0.022 ↑ 1.0 1 11

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

  • Index Cond: (scn.importbatch_id = id)
26. 0.011 0.011 ↑ 6.0 1 11

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

27. 0.022 0.022 ↑ 1.0 1 11

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

  • Index Cond: (id = fi_eps.earlypaymentadvice_id)
28. 0.000 0.000 ↓ 0.0 0 11

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

29. 0.000 0.000 ↓ 0.0 0 11

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

30.          

SubPlan (for Nested Loop Left Join)

31. 0.011 0.011 ↑ 1.0 1 11

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

32. 0.000 0.000 ↓ 0.0 0 11

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

  • Index Cond: (mapping_id = fi_eps.maturitypaymentmapping_id)
Planning time : 6.744 ms
Execution time : 1.212 ms