explain.depesz.com

PostgreSQL's explain analyze made readable

Result: aBTY

Settings
# exclusive inclusive rows x rows loops node
1. 0.005 20,348.347 ↑ 1.0 1 1

Limit (cost=26,374.89..26,374.89 rows=1 width=94) (actual time=20,348.344..20,348.347 rows=1 loops=1)

  • Buffers: shared hit=353325
2. 5,594.936 20,348.342 ↑ 55,944.0 1 1

Sort (cost=26,374.89..26,514.75 rows=55,944 width=94) (actual time=20,348.342..20,348.342 rows=1 loops=1)

  • Sort Key: pl.last_modification_date DESC
  • Sort Method: top-N heapsort Memory: 1197kB
  • Buffers: shared hit=353325
3. 14,693.437 14,753.406 ↓ 1.1 60,170 1

Hash Left Join (cost=1,077.57..26,095.17 rows=55,944 width=94) (actual time=1.034..14,753.406 rows=60,170 loops=1)

  • Hash Cond: (pl.service_point_id = sp.id)
  • Buffers: shared hit=353325
4. 59.079 59.079 ↓ 1.1 60,170 1

Index Scan using pricelist_account_id_idx on pricelist pl (cost=0.42..24,730.26 rows=55,944 width=956) (actual time=0.011..59.079 rows=60,170 loops=1)

  • Index Cond: (account_id IS NULL)
  • Filter: ((date_active <= '2020-01-29 00:00:00'::timestamp without time zone) AND (last_modification_date <= '2020-01-29 00:00:00'::timestamp without time zone))
  • Buffers: shared hit=19358
5. 0.068 0.890 ↑ 1.0 448 1

Hash (cost=1,071.55..1,071.55 rows=448 width=8) (actual time=0.890..0.890 rows=448 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 27kB
  • Buffers: shared hit=460
6. 0.822 0.822 ↑ 1.0 448 1

Index Scan using service_point_pkey on service_point sp (cost=0.40..1,071.55 rows=448 width=8) (actual time=0.008..0.822 rows=448 loops=1)

  • Buffers: shared hit=460