explain.depesz.com

PostgreSQL's explain analyze made readable

Result: b24I

Settings
# exclusive inclusive rows x rows loops node
1. 0.001 2.166 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.97..21,388.62 rows=225 width=2,686) (actual time=2.165..2.166 rows=0 loops=1)

  • Join Filter: (fi_si.paymentadvice_id = fi_ipa.id)
2. 0.001 2.165 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.97..19,506.49 rows=225 width=387) (actual time=2.165..2.165 rows=0 loops=1)

  • Join Filter: (bpt.mapping_id = fi_eps.earlypaymentmapping_id)
3. 0.000 2.164 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.97..19,462.62 rows=225 width=387) (actual time=2.164..2.164 rows=0 loops=1)

4. 0.001 2.164 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.70..19,396.80 rows=225 width=373) (actual time=2.164..2.164 rows=0 loops=1)

5. 0.000 2.163 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.28..19,292.35 rows=225 width=257) (actual time=2.163..2.163 rows=0 loops=1)

  • Join Filter: (scn.currency_id = c.id)
6. 0.001 2.163 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.28..19,273.47 rows=225 width=261) (actual time=2.163..2.163 rows=0 loops=1)

7. 0.000 2.162 ↓ 0.0 0 1

Nested Loop Left Join (cost=1.84..17,437.48 rows=225 width=261) (actual time=2.162..2.162 rows=0 loops=1)

  • Join Filter: (fi_si.originatordivision_id = od_db.id)
8. 0.000 2.162 ↓ 0.0 0 1

Nested Loop (cost=1.57..17,300.92 rows=225 width=239) (actual time=2.162..2.162 rows=0 loops=1)

  • Join Filter: (scn.referencedinvoice_id = fi_si.id)
9. 0.001 2.162 ↓ 0.0 0 1

Nested Loop Left Join (cost=1.14..17,300.27 rows=1 width=201) (actual time=2.161..2.162 rows=0 loops=1)

10. 0.000 2.161 ↓ 0.0 0 1

Nested Loop (cost=0.86..17,299.63 rows=1 width=191) (actual time=2.161..2.161 rows=0 loops=1)

11. 1.653 2.161 ↓ 0.0 0 1

Nested Loop (cost=0.43..17,299.18 rows=1 width=191) (actual time=2.160..2.161 rows=0 loops=1)

12. 0.508 0.508 ↑ 1.0 2,096 1

Seq Scan on suppliercreditnote scn (cost=0.00..78.96 rows=2,096 width=151) (actual time=0.006..0.508 rows=2,096 loops=1)

13. 0.000 0.000 ↓ 0.0 0 2,096

Index Scan using earlypaymentsettlement_invoice_idx on earlypaymentsettlement fi_eps (cost=0.43..8.21 rows=1 width=40) (actual time=0.000..0.000 rows=0 loops=2,096)

  • Index Cond: (invoice_id = scn.referencedinvoice_id)
  • Filter: (creationdate >= '2019-01-01'::date)
14. 0.000 0.000 ↓ 0.0 0

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

  • Index Cond: (id = fi_eps.id)
15. 0.000 0.000 ↓ 0.0 0

Index Scan using corporatebase_pkey on corporatebase s_cb (cost=0.28..0.64 rows=1 width=26) (never executed)

  • Index Cond: (id = scn.supplier_id)
16. 0.000 0.000 ↓ 0.0 0

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

  • Index Cond: (id = fi_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
17. 0.000 0.000 ↓ 0.0 0

Materialize (cost=0.28..89.35 rows=14 width=38) (never executed)

18. 0.000 0.000 ↓ 0.0 0

Nested Loop Left Join (cost=0.28..89.28 rows=14 width=38) (never executed)

19. 0.000 0.000 ↓ 0.0 0

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

20. 0.000 0.000 ↓ 0.0 0

Index Scan using corporatebase_pkey on corporatebase od_c_cb (cost=0.28..6.29 rows=1 width=26) (never executed)

  • Index Cond: (id = od_db.buyer_id)
21. 0.000 0.000 ↓ 0.0 0

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

  • Index Cond: (scn.importbatch_id = id)
22. 0.000 0.000 ↓ 0.0 0

Materialize (cost=0.00..1.09 rows=6 width=12) (never executed)

23. 0.000 0.000 ↓ 0.0 0

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

24. 0.000 0.000 ↓ 0.0 0

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: (id = fi_ps_apfeps.financingcontext_id)
25. 0.000 0.000 ↓ 0.0 0

Index Scan using earlypaymentadvice_pkey on earlypaymentadvice fi_eps_epa (cost=0.28..0.29 rows=1 width=30) (never executed)

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

Materialize (cost=0.00..10.15 rows=10 width=16) (never executed)

27. 0.000 0.000 ↓ 0.0 0

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

28. 0.000 0.000 ↓ 0.0 0

Materialize (cost=0.00..10.15 rows=10 width=1,052) (never executed)

29. 0.000 0.000 ↓ 0.0 0

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

30.          

SubPlan (for Nested Loop Left Join)

31. 0.000 0.000 ↓ 0.0 0

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

32. 0.000 0.000 ↓ 0.0 0

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

  • Index Cond: (mapping_id = fi_eps.maturitypaymentmapping_id)
Planning time : 5.060 ms
Execution time : 2.361 ms