explain.depesz.com

PostgreSQL's explain analyze made readable

Result: QR6m

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

Nested Loop Left Join (cost=2.97..17,636.11 rows=13 width=2,686) (actual time=2.152..2.152 rows=0 loops=1)

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

Nested Loop Left Join (cost=2.97..17,517.83 rows=13 width=387) (actual time=2.151..2.151 rows=0 loops=1)

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

Nested Loop Left Join (cost=2.97..17,505.75 rows=13 width=387) (actual time=2.150..2.151 rows=0 loops=1)

4. 0.000 2.150 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.70..17,501.95 rows=13 width=373) (actual time=2.150..2.150 rows=0 loops=1)

5. 0.001 2.150 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.28..17,495.92 rows=13 width=257) (actual time=2.150..2.150 rows=0 loops=1)

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

Nested Loop Left Join (cost=2.28..17,493.80 rows=13 width=261) (actual time=2.149..2.149 rows=0 loops=1)

7. 0.001 2.149 ↓ 0.0 0 1

Nested Loop Left Join (cost=1.84..17,387.72 rows=13 width=261) (actual time=2.149..2.149 rows=0 loops=1)

8. 0.000 2.148 ↓ 0.0 0 1

Nested Loop Left Join (cost=1.57..17,305.88 rows=13 width=251) (actual time=2.148..2.148 rows=0 loops=1)

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

Nested Loop (cost=1.57..17,302.16 rows=13 width=239) (actual time=2.148..2.148 rows=0 loops=1)

  • Join Filter: (scn.referencedinvoice_id = fi_si.id)
10. 0.000 2.147 ↓ 0.0 0 1

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

11. 0.000 2.147 ↓ 0.0 0 1

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

  • Join Filter: (fi_ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
12. 0.001 2.147 ↓ 0.0 0 1

Nested Loop (cost=0.86..17,299.63 rows=1 width=199) (actual time=2.146..2.147 rows=0 loops=1)

13. 1.646 2.146 ↓ 0.0 0 1

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

14. 0.500 0.500 ↑ 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.500 rows=2,096 loops=1)

15. 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 >= '2012-01-01'::date)
16. 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)
17. 0.000 0.000 ↓ 0.0 0

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

  • Filter: (buyer_id = 3065)
18. 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)
19. 0.000 0.000 ↓ 0.0 0

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

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

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

21. 0.000 0.000 ↓ 0.0 0

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

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

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

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

29. 0.000 0.000 ↓ 0.0 0

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

30. 0.000 0.000 ↓ 0.0 0

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

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

32.          

SubPlan (for Nested Loop Left Join)

33. 0.000 0.000 ↓ 0.0 0

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

34. 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 : 10.707 ms
Execution time : 2.359 ms