explain.depesz.com

PostgreSQL's explain analyze made readable

Result: iirv : Optimization for: Optimization for: plan #9tx8; plan #sDb2

Settings

Optimization path:

# exclusive inclusive rows x rows loops node
1. 0.003 0.020 ↑ 1.0 1 1

Result (cost=1.90..1.91 rows=1 width=8) (actual time=0.019..0.020 rows=1 loops=1)

2.          

Initplan (forResult)

3. 0.001 0.017 ↑ 1.0 1 1

Limit (cost=0.56..1.90 rows=1 width=8) (actual time=0.017..0.017 rows=1 loops=1)

4. 0.016 0.016 ↑ 144.0 1 1

Index Scan Backward using idx_user_id_id_expiration on token (cost=0.56..192.76 rows=144 width=8) (actual time=0.016..0.016 rows=1 loops=1)

  • Index Cond: ((user_id = 819975) AND (id IS NOT NULL) AND (expiration > '2018-12-28 12:31:24.265'::timestamp without time zone))
  • Filter: ((expired IS NOT TRUE) AND ((type)::text <> 'ADMIN'::text))