explain.depesz.com

PostgreSQL's explain analyze made readable

Result: IVVJ

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

Nested Loop Left Join (cost=2.82..19,264.57 rows=7 width=2,686) (actual time=0.018..0.018 rows=0 loops=1)

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

Nested Loop Left Join (cost=2.82..19,196.20 rows=7 width=387) (actual time=0.017..0.017 rows=0 loops=1)

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

Nested Loop Left Join (cost=2.82..19,185.03 rows=7 width=387) (actual time=0.016..0.016 rows=0 loops=1)

  • Join Filter: (fi_eps_epa.id = fi_eps.earlypaymentadvice_id)
4. 0.000 0.016 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.82..19,062.99 rows=7 width=373) (actual time=0.016..0.016 rows=0 loops=1)

5. 0.001 0.016 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.40..19,059.74 rows=7 width=257) (actual time=0.015..0.016 rows=0 loops=1)

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

Nested Loop Left Join (cost=2.40..19,058.10 rows=7 width=261) (actual time=0.015..0.015 rows=0 loops=1)

7. 0.001 0.015 ↓ 0.0 0 1

Nested Loop Left Join (cost=1.97..19,000.98 rows=7 width=261) (actual time=0.015..0.015 rows=0 loops=1)

8. 0.000 0.014 ↓ 0.0 0 1

Nested Loop Left Join (cost=1.69..18,996.50 rows=7 width=251) (actual time=0.014..0.014 rows=0 loops=1)

9. 0.000 0.014 ↓ 0.0 0 1

Nested Loop Left Join (cost=1.42..18,952.43 rows=7 width=241) (actual time=0.014..0.014 rows=0 loops=1)

  • Join Filter: (fi_si.originatordivision_id = od_db.id)
10. 0.001 0.014 ↓ 0.0 0 1

Nested Loop (cost=1.42..18,949.78 rows=7 width=229) (actual time=0.013..0.014 rows=0 loops=1)

  • Join Filter: (fi_ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
11. 0.013 0.013 ↓ 0.0 0 1

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.25 rows=1 width=8) (actual time=0.013..0.013 rows=0 loops=1)

  • Filter: (buyer_id = 3065)
  • Rows Removed by Filter: 20
12. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.42..18,946.83 rows=136 width=237) (never executed)

13. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.99..18,481.69 rows=1,040 width=229) (never executed)

14. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..17,825.12 rows=1,072 width=205) (never executed)

15. 0.000 0.000 ↓ 0.0 0

Seq Scan on suppliercreditnote scn (cost=0.00..78.96 rows=2,096 width=152) (never executed)

16. 0.000 0.000 ↓ 0.0 0

Index Scan using supplierinvoice_externalkey_idx on supplierinvoice fi_si (cost=0.56..8.46 rows=1 width=84) (never executed)

  • Index Cond: ((externalkey)::text = (scn.referencedarpexternalkey)::text)
  • Filter: (nettingbundle_id IS NULL)
17. 0.000 0.000 ↓ 0.0 0

Index Scan using earlypaymentsettlement_invoice_idx on earlypaymentsettlement fi_eps (cost=0.43..0.61 rows=1 width=40) (never executed)

  • Index Cond: (invoice_id = fi_si.id)
  • Filter: (creationdate >= '2012-01-01'::date)
18. 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)
19. 0.000 0.000 ↓ 0.0 0

Materialize (cost=0.00..1.21 rows=14 width=28) (never executed)

20. 0.000 0.000 ↓ 0.0 0

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

21. 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)
22. 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)
23. 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)
24. 0.000 0.000 ↓ 0.0 0

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

25. 0.000 0.000 ↓ 0.0 0

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

26. 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)
27. 0.000 0.000 ↓ 0.0 0

Materialize (cost=0.00..25.18 rows=945 width=30) (never executed)

28. 0.000 0.000 ↓ 0.0 0

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

29. 0.000 0.000 ↓ 0.0 0

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

30. 0.000 0.000 ↓ 0.0 0

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

31. 0.000 0.000 ↓ 0.0 0

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

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

33.          

SubPlan (for Nested Loop Left Join)

34. 0.000 0.000 ↓ 0.0 0

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

35. 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.937 ms
Execution time : 0.216 ms