explain.depesz.com

PostgreSQL's explain analyze made readable

Result: yk8j

Settings

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.043 13.648 ↓ 6.0 6 1

Group (cost=40.10..40.20 rows=1 width=1,142) (actual time=13.599..13.648 rows=6 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. 0.462 13.605 ↓ 23.0 23 1

Sort (cost=40.10..40.10 rows=1 width=1,142) (actual time=13.594..13.605 rows=23 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: 71kB
3. 0.886 13.143 ↓ 23.0 23 1

Nested Loop (cost=0.00..40.09 rows=1 width=1,142) (actual time=1.634..13.143 rows=23 loops=1)

  • Join Filter: (CASE WHEN (exe.fitipoevaluacion = 2) THEN gru.ficursoid ELSE exe.ficursoid END = gru.ficursoid)
4. 0.085 12.101 ↓ 6.0 6 1

Nested Loop (cost=0.00..28.41 rows=1 width=484) (actual time=1.473..12.101 rows=6 loops=1)

5. 0.112 0.112 ↓ 32.0 32 1

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

  • Filter: ((ficursoid = fitipoevaluacion) AND (fiestatusid = 1))
6. 11.904 11.904 ↓ 0.0 0 32

Index Scan using pk_evaluacionempleado on evaluacionempleado exe (cost=0.00..8.64 rows=1 width=115) (actual time=0.199..0.372 rows=0 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 = 7) AND (exe.fiformatoid = 11) AND (exe.ficonsecutivo = 0))
  • Filter: ((exe.ficertificacionid = exe.ficertificacionid) AND (exe.figrupoid = exe.figrupoid) AND (exe.ficursoid = exe.fitipoevaluacion) AND (btrim((exe.fcempleadoid)::text) = '7-P1010023815'::text))
7. 0.156 0.156 ↓ 4.5 9 6

Index Scan using pk_grupo on grupo gru (cost=0.00..11.60 rows=2 width=674) (actual time=0.013..0.026 rows=9 loops=6)

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