explain.depesz.com

PostgreSQL's explain analyze made readable

Result: tYQK

Settings
# exclusive inclusive rows x rows loops node
1. 0.003 5.587 ↑ 1.0 1 1

Result (cost=510.42..510.43 rows=1 width=1) (actual time=5.586..5.587 rows=1 loops=1)

2.          

Initplan (for Result)

3. 0.161 5.584 ↑ 46.0 1 1

Nested Loop (cost=1.29..23,421.34 rows=46 width=0) (actual time=5.584..5.584 rows=1 loops=1)

  • Join Filter: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
  • Rows Removed by Join Filter: 421
4. 0.119 5.317 ↑ 2.2 106 1

Nested Loop (cost=1.29..23,406.71 rows=230 width=8) (actual time=0.126..5.317 rows=106 loops=1)

5. 1.851 4.986 ↑ 16.6 106 1

Nested Loop (cost=0.86..22,616.72 rows=1,763 width=8) (actual time=0.121..4.986 rows=106 loops=1)

6. 0.899 0.899 ↓ 1.0 2,236 1

Index Scan using supplierinvoice_nettingbundle_idx on supplierinvoice si (cost=0.43..5,073.28 rows=2,138 width=8) (actual time=0.013..0.899 rows=2,236 loops=1)

  • Index Cond: (nettingbundle_id IS NOT NULL)
7. 2.236 2.236 ↓ 0.0 0 2,236

Index Scan using earlypaymentsettlement_invoice_idx on earlypaymentsettlement ps_eps (cost=0.43..8.21 rows=1 width=16) (actual time=0.001..0.001 rows=0 loops=2,236)

  • Index Cond: (invoice_id = si.id)
  • Filter: (creationdate >= '2019-01-01'::date)
8. 0.212 0.212 ↑ 1.0 1 106

Index Scan using apfearlypaymentsettlement_pkey on apfearlypaymentsettlement ps_apfeps (cost=0.42..0.45 rows=1 width=16) (actual time=0.002..0.002 rows=1 loops=106)

  • Index Cond: (id = ps_eps.id)
9. 0.099 0.106 ↑ 1.0 4 106

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

10. 0.007 0.007 ↑ 1.0 4 1

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.25 rows=4 width=8) (actual time=0.005..0.007 rows=4 loops=1)

  • Filter: (buyer_id = 67002626)
  • Rows Removed by Filter: 16
Planning time : 0.822 ms
Execution time : 5.635 ms