explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 0NTr

Settings

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 3.555 147.619 ↓ 1,840.0 1,840 1

Group (cost=40.03..40.13 rows=1 width=1,142) (actual time=143.031..147.619 rows=1,840 loops=1)

  • exe.figrupoid, (btrim((exe.fcempleadoid)::text)), exe.fiestatusid, (CASE WHEN (exe.ficalificacion IS NULL) THEN '0'::text ELSE btrim((''::text || (exe.ficalificacion)::text)) END), evl.fiduracion, (to_char(exe.fdinicio, 'DD-MM-YYYY hh24:mi:ss'::text)), (to_char(gru.fdfin, 'DD-MM-YYYY hh24:mi:ss'::text)), evl.fitotalpreguntas, exe.ficonsecutivo, exe.firesetautomatico, exe.ficandado
2. 31.668 144.064 ↓ 1,952.0 1,952 1

Sort (cost=40.03..40.03 rows=1 width=1,142) (actual time=143.024..144.064 rows=1,952 loops=1)

  • Sort Key: exe.ficursoid, exe.fiintento, exe.fitipoevaluacion, exe.fievaluacionid, (btrim((evl.fcnombre)::text)), (btrim((evl.fcdescripcion)::text)), (btrim((gru.fcdescripcion)::text)), (((to_char(exe.fdinicio, 'dd/mm/yyyy'::text) || ' - '::text) || to_char(exe.fdfin, 'dd/mm/yyyy'::text))), exe.ficertificacionid, exe.ficlienteid, exe.fiformatoid,
  • Sort Method: quicksort Memory: 3,983kB
3. 73.677 112.396 ↓ 1,952.0 1,952 1

Nested Loop (cost=0.00..40.02 rows=1 width=1,142) (actual time=0.660..112.396 rows=1,952 loops=1)

  • Join Filter: (CASE WHEN (exe.fitipoevaluacion = 2) THEN gru.ficursoid ELSE exe.ficursoid END = gru.ficursoid)
4. 2.585 20.319 ↓ 1,840.0 1,840 1

Nested Loop (cost=0.00..28.34 rows=1 width=484) (actual time=0.546..20.319 rows=1,840 loops=1)

5. 0.198 0.198 ↓ 32.0 32 1

Seq Scan on evaluacion evl (cost=0.00..19.75 rows=1 width=381) (actual time=0.025..0.198 rows=32 loops=1)

  • Filter: ((ficursoid = fitipoevaluacion) AND (fiestatusid = 1))
6. 17.536 17.536 ↓ 58.0 58 32

Index Scan using pk_evaluacionempleado on evaluacionempleado exe (cost=0.00..8.57 rows=1 width=115) (actual time=0.113..0.548 rows=58 loops=32)

  • Index Cond: ((exe.ficertificacionid = evl.ficertificacionid) AND (exe.ficursoid = evl.ficursoid) AND (exe.fitipoevaluacion = evl.ficursoid) AND (exe.fievaluacionid = evl.fievaluacionid) AND (exe.ficlienteid = 5) AND (exe.fiformatoid = 16) AND (exe.ficonsecutivo = 0))
  • Filter: ((exe.ficertificacionid = exe.ficertificacionid) AND (exe.figrupoid = exe.figrupoid) AND (exe.ficursoid = exe.fitipoevaluacion) AND (btrim((exe.fcempleadoid)::text) = '5-EC004'::text))
7. 18.400 18.400 ↓ 3.5 7 1,840

Index Scan using pk_grupo on grupo gru (cost=0.00..11.60 rows=2 width=674) (actual time=0.004..0.010 rows=7 loops=1,840)

  • Index Cond: ((gru.ficertificacionid = exe.ficertificacionid) AND (gru.figrupoid = exe.figrupoid))
Total runtime : 148.972 ms