explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 0SAh

Settings
# exclusive inclusive rows x rows loops node
1. 0.001 0.011 ↓ 0.0 0 1

GroupAggregate (cost=55,627.76..55,627.85 rows=5 width=12) (actual time=0.011..0.011 rows=0 loops=1)

  • Group Key: selo.id_cartorio
2. 0.003 0.010 ↓ 0.0 0 1

Sort (cost=55,627.76..55,627.77 rows=5 width=8) (actual time=0.010..0.010 rows=0 loops=1)

  • Sort Key: selo.id_cartorio
  • Sort Method: quicksort Memory: 25kB
3. 0.000 0.007 ↓ 0.0 0 1

Nested Loop Left Join (cost=347.29..55,627.70 rows=5 width=8) (actual time=0.007..0.007 rows=0 loops=1)

  • Filter: ((selo_analisado.cs_situacao_isento = 1) OR (selo_analisado.cs_situacao_isento IS NULL))
4. 0.001 0.007 ↓ 0.0 0 1

Nested Loop (cost=346.87..55,619.14 rows=19 width=12) (actual time=0.007..0.007 rows=0 loops=1)

5. 0.006 0.006 ↓ 0.0 0 1

Index Scan using selo_compensado_cs_situacao_compensado_dt_recurso_idx on selo_compensado (cost=0.42..8.44 rows=1 width=4) (actual time=0.006..0.006 rows=0 loops=1)

  • Index Cond: ((dt_recurso >= '2020-08-01 00:00:00'::timestamp without time zone) AND (dt_recurso <= '2020-08-31 23:59:59'::timestamp without time zone) AND (cs_situacao_compensado = 2))
  • Filter: (NOT automatico)
6. 0.000 0.000 ↓ 0.0 0

Bitmap Heap Scan on selo (cost=346.45..55,434.04 rows=17,666 width=16) (never executed)

  • Recheck Cond: (id_selo_compensado = selo_compensado.id_selo_compensado)
  • Filter: (cs_situacao_selo = 0)
7. 0.000 0.000 ↓ 0.0 0

Bitmap Index Scan on selo_id_selo_compensado_idx (cost=0.00..342.04 rows=17,814 width=0) (never executed)

  • Index Cond: (id_selo_compensado = selo_compensado.id_selo_compensado)
8. 0.000 0.000 ↓ 0.0 0

Index Scan using selo_analisado_pkey on selo_analisado (cost=0.42..0.44 rows=1 width=8) (never executed)

  • Index Cond: (id_selo_analisado = selo.id_selo_analisado)