explain.depesz.com

PostgreSQL's explain analyze made readable

Result: xq4sl

Settings
# exclusive inclusive rows x rows loops node
1. 0.001 0.033 ↑ 1.0 1 1

Result (cost=3.46..3.47 rows=1 width=4) (actual time=0.033..0.033 rows=1 loops=1)

  • Buffers: shared hit=3
2.          

Initplan (for Result)

3. 0.002 0.032 ↓ 0.0 0 1

Limit (cost=0.43..3.46 rows=1 width=4) (actual time=0.032..0.032 rows=0 loops=1)

  • Buffers: shared hit=3
4. 0.030 0.030 ↓ 0.0 0 1

Index Scan using index_pat_on_user_id_and_expires_at on public.personal_access_tokens (cost=0.43..3.46 rows=1 width=4) (actual time=0.030..0.030 rows=0 loops=1)

  • Index Cond: ((personal_access_tokens.user_id = 644) AND (personal_access_tokens.expires_at IS NOT NULL) AND (personal_access_tokens.expires_at > now()) AND (personal_access_tokens.expires_at <= '2020-07-01'::date))
  • Filter: ((NOT personal_access_tokens.impersonation) AND ((NOT personal_access_tokens.revoked) OR (personal_access_tokens.revoked IS NULL)))
  • Rows Removed by Filter: 0
  • Buffers: shared hit=3