explain.depesz.com

PostgreSQL's explain analyze made readable

Result: klVe

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

Result (cost=3.45..3.46 rows=1 width=4) (actual time=0.043..0.044 rows=1 loops=1)

  • Buffers: shared hit=3
2.          

Initplan (for Result)

3. 0.001 0.041 ↓ 0.0 0 1

Limit (cost=0.43..3.45 rows=1 width=4) (actual time=0.041..0.041 rows=0 loops=1)

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

Index Scan using index_pat_on_user_id_and_expires_at on public.personal_access_tokens (cost=0.43..3.45 rows=1 width=4) (actual time=0.040..0.040 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 <= '2020-06-24'::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