explain.depesz.com

PostgreSQL's explain analyze made readable

Result: zqW : Optimization for: plan #dJg1

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.006 0.034 ↓ 8.0 8 1

GroupAggregate (cost=1.53..1.55 rows=1 width=16) (actual time=0.030..0.034 rows=8 loops=1)

  • Output: (date_trunc('day'::text, inserted_at)), count(inserted_at)
  • Group Key: (date_trunc('day'::text, up.inserted_at))
2. 0.008 0.028 ↓ 17.0 17 1

Sort (cost=1.53..1.53 rows=1 width=16) (actual time=0.027..0.028 rows=17 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.020 0.020 ↓ 17.0 17 1

Seq Scan on public.user_passphrases up (cost=0.00..1.52 rows=1 width=16) (actual time=0.010..0.020 rows=17 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: 13
Planning time : 0.093 ms
Execution time : 0.054 ms