explain.depesz.com

PostgreSQL's explain analyze made readable

Result: ltVU

Settings
# exclusive inclusive rows x rows loops node
1. 0.003 52.002 ↑ 1.0 1 1

Limit (cost=25,009.98..25,009.98 rows=1 width=50) (actual time=52.000..52.002 rows=1 loops=1)

  • Buffers: shared hit=19358
2. 12.150 51.999 ↑ 55,944.0 1 1

Sort (cost=25,009.98..25,149.84 rows=55,944 width=50) (actual time=51.999..51.999 rows=1 loops=1)

  • Sort Key: last_modification_date DESC
  • Sort Method: top-N heapsort Memory: 25kB
  • Buffers: shared hit=19358
3. 39.849 39.849 ↓ 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=50) (actual time=0.017..39.849 rows=60,170 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=19358