explain.depesz.com

PostgreSQL's explain analyze made readable

Result: R1PV

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

Result (cost=1.90..1.91 rows=1 width=8) (actual time=0.029..0.030 rows=1 loops=1)

2.          

Initplan (forResult)

3. 0.002 0.027 ↑ 1.0 1 1

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

4. 0.025 0.025 ↑ 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.025..0.025 rows=1 loops=1)

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