explain.depesz.com

PostgreSQL's explain analyze made readable

Result: aaOr : Optimization for: plan #IUKy

Settings

Optimization path:

# exclusive inclusive rows x rows loops node
1. 0.005 0.025 ↓ 2.0 2 1

GroupAggregate (cost=1.53..1.55 rows=1 width=16) (actual time=0.024..0.025 rows=2 loops=1)

  • Output: (date_trunc('day'::text, inserted_at)), count(inserted_at)
  • Group Key: (date_trunc('day'::text, up.inserted_at))
2. 0.005 0.020 ↓ 8.0 8 1

Sort (cost=1.53..1.53 rows=1 width=16) (actual time=0.020..0.020 rows=8 loops=1)

  • Output: (date_trunc('day'::text, inserted_at)), inserted_at
  • Sort Key: (date_trunc('day'::text, up.inserted_at))
  • Sort Method: quicksort Memory: 25kB
3. 0.015 0.015 ↓ 8.0 8 1

Seq Scan on public.user_passphrases up (cost=0.00..1.52 rows=1 width=16) (actual time=0.009..0.015 rows=8 loops=1)

  • Output: date_trunc('day'::text, inserted_at), inserted_at
  • Filter: ((up.inserted_at <= now()) AND (up.inserted_at >= (now() - '7 days'::interval)))
  • Rows Removed by Filter: 15
Planning time : 0.078 ms
Execution time : 0.042 ms