explain.depesz.com

PostgreSQL's explain analyze made readable

Result: VwLc

Settings
# exclusive inclusive rows x rows loops node
1. 0.006 20,393.393 ↑ 1.0 1 1

Limit (cost=26,441.71..26,441.71 rows=1 width=94) (actual time=20,393.389..20,393.393 rows=1 loops=1)

  • Buffers: shared hit=353294
2. 5,681.609 20,393.387 ↑ 55,944.0 1 1

Sort (cost=26,441.71..26,581.57 rows=55,944 width=94) (actual time=20,393.386..20,393.387 rows=1 loops=1)

  • Sort Key: pl.last_modification_date DESC
  • Sort Method: top-N heapsort Memory: 1197kB
  • Buffers: shared hit=353294
3. 14,651.738 14,711.778 ↓ 1.1 60,165 1

Hash Left Join (cost=1,144.55..26,161.99 rows=55,944 width=94) (actual time=0.716..14,711.778 rows=60,165 loops=1)

  • Hash Cond: (pl.service_point_id = sp.id)
  • Buffers: shared hit=353294
4. 59.418 59.418 ↓ 1.1 60,165 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.012..59.418 rows=60,165 loops=1)

  • Index Cond: (account_id IS NULL)
  • Filter: ((date_active <= '2020-01-30 00:00:00'::timestamp without time zone) AND (last_modification_date <= '2020-01-30 00:00:00'::timestamp without time zone))
  • Buffers: shared hit=19356
5. 0.069 0.622 ↑ 1.2 448 1

Hash (cost=1,137.56..1,137.56 rows=525 width=8) (actual time=0.622..0.622 rows=448 loops=1)

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

Index Scan using service_point_pkey on service_point sp (cost=0.40..1,137.56 rows=525 width=8) (actual time=0.002..0.553 rows=448 loops=1)

  • Buffers: shared hit=460