explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 9ORB

Settings
# exclusive inclusive rows x rows loops node
1. 0.037 1.154 ↓ 5.0 5 1

Nested Loop (cost=1.15..104.59 rows=1 width=89) (actual time=0.159..1.154 rows=5 loops=1)

  • Join Filter: (cid.fk_estado_id = est.id)
  • Rows Removed by Join Filter: 26
2. 0.001 1.097 ↓ 5.0 5 1

Nested Loop (cost=1.15..103.37 rows=1 width=93) (actual time=0.141..1.097 rows=5 loops=1)

3. 0.003 1.086 ↓ 5.0 5 1

Nested Loop (cost=1.00..103.13 rows=1 width=80) (actual time=0.138..1.086 rows=5 loops=1)

4. 0.085 1.073 ↓ 5.0 5 1

Merge Join (cost=0.86..102.95 rows=1 width=67) (actual time=0.135..1.073 rows=5 loops=1)

  • Merge Cond: (e.id = en.id)
5. 0.540 0.850 ↑ 16.7 6 1

Nested Loop (cost=0.58..5,058.62 rows=100 width=53) (actual time=0.097..0.850 rows=6 loops=1)

  • Join Filter: (jur.id = e.fk_pessoa_juridica_id)
  • Rows Removed by Join Filter: 1685
6. 0.310 0.310 ↑ 59.1 1,691 1

Index Scan using estacionamento_pkey on estacionamento e (cost=0.29..3,542.29 rows=100,000 width=35) (actual time=0.008..0.310 rows=1,691 loops=1)

7. 0.000 0.000 ↑ 1.0 1 1,691

Materialize (cost=0.29..16.33 rows=1 width=26) (actual time=0.000..0.000 rows=1 loops=1,691)

8. 0.001 0.015 ↑ 1.0 1 1

Nested Loop (cost=0.29..16.33 rows=1 width=26) (actual time=0.014..0.015 rows=1 loops=1)

9. 0.009 0.009 ↑ 1.0 1 1

Index Scan using idx_cnpj on pessoa_juridica jur (cost=0.00..8.02 rows=1 width=19) (actual time=0.008..0.009 rows=1 loops=1)

  • Index Cond: ((cnpj)::text = 'pzpnd-cnpj'::text)
10. 0.005 0.005 ↑ 1.0 1 1

Index Scan using pessoa_pkey on pessoa pes (cost=0.29..8.31 rows=1 width=15) (actual time=0.005..0.005 rows=1 loops=1)

  • Index Cond: (id = jur.fk_pessoa_id)
11. 0.138 0.138 ↑ 1.0 1,000 1

Index Scan using endereco_pkey on endereco en (cost=0.28..49.27 rows=1,000 width=18) (actual time=0.005..0.138 rows=1,000 loops=1)

12. 0.010 0.010 ↑ 1.0 1 5

Index Scan using bairro_pkey on bairro b (cost=0.14..0.17 rows=1 width=21) (actual time=0.002..0.002 rows=1 loops=5)

  • Index Cond: (id = en.fk_bairro_id)
13. 0.010 0.010 ↑ 1.0 1 5

Index Scan using cidade_pkey on cidade cid (cost=0.14..0.24 rows=1 width=21) (actual time=0.001..0.002 rows=1 loops=5)

  • Index Cond: (id = b.fk_cidade_id)
14. 0.020 0.020 ↑ 1.7 6 5

Seq Scan on estado est (cost=0.00..1.10 rows=10 width=4) (actual time=0.004..0.004 rows=6 loops=5)