explain.depesz.com

PostgreSQL's explain analyze made readable

Result: zvq : Optimization for: Optimization for: Optimization for: Optimization for: plan #K1Vh; plan #6HnL; plan #tefw; plan #raCd

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.330 2.171 ↓ 0.0 0 1

Update on episodios_alta_diagnosticos (cost=0.42..23.28 rows=28 width=26) (actual time=2.171..2.171 rows=0 loops=1)

2. 0.101 1.841 ↓ 1.0 29 1

Index Scan using episodios_alta_diagnosticos_pkey on episodios_alta_diagnosticos episodios_alta_diagnosticos (cost=0.42..23.28 rows=28 width=26) (actual time=0.092..1.841 rows=29 loops=1)

  • Index Cond: (id < 386655)
3.          

SubPlan (for Index Scan)

4. 0.058 1.740 ↑ 1.0 1 29

Limit (cost=0..0.51 rows=1 width=4) (actual time=0.06..0.06 rows=1 loops=29)

5. 1.682 1.682 ↑ 34,585.0 1 29

Seq Scan on cies cies (cost=0..17,484.59 rows=34,585 width=4) (actual time=0.058..0.058 rows=1 loops=29)

  • Filter: ((diagnostico_procedimiento = 'D'::bpchar) AND (CASE WHEN (episodios_alta_diagnosticos.orden > '-1'::integer) THEN 6 ELSE 0 END = id_cie_version))
Planning time : 0.263 ms
Execution time : 2.283 ms