explain.depesz.com

PostgreSQL's explain analyze made readable

Result: nkjx

Settings
# exclusive inclusive rows x rows loops node
1. 0.242 2,616.955 ↑ 20.6 10 1

Aggregate (cost=258,530.84..258,538.75 rows=206 width=14) (actual time=2,616.712..2,616.955 rows=10 loops=1)

  • Group Key: packages_events.originator_type, packages_events.event_type, packages_events.event_scope
  • Buffers: shared hit=24 read=57,143
  • I/O Timings: read=1,543.214
2. 0.722 2,616.713 ↓ 1.2 539 1

Sort (cost=258,530.84..258,532.01 rows=468 width=14) (actual time=2,616.651..2,616.713 rows=539 loops=1)

  • Sort Key: packages_events.originator_type, packages_events.event_type, packages_events.event_scope
  • Sort Method: quicksort Memory: 50kB
  • Buffers: shared hit=18 read=57,143
  • I/O Timings: read=1,543.214
3. 2,615.991 2,615.991 ↓ 1.2 539 1

Index Scan using index_packages_events_on_created_and_types_and_originator on public.packages_events (cost=0.56..258,510.08 rows=468 width=14) (actual time=0.735..2,615.991 rows=539 loops=1)

  • Index Cond: ((packages_events.created_at >= '2020-09-15 17:34:51.086253+00'::timestamp with time zone) AND (packages_events.created_at <= '2020-10-13 17:34:51.086455+00'::timestamp with time zone) AND (packages_events.originator >= 0) AND (packages_events.originator <= 9,999))
  • Buffers: shared hit=18 read=57,143
  • I/O Timings: read=1,543.214