explain.depesz.com

PostgreSQL's explain analyze made readable

Result: ApW8

Settings
# exclusive inclusive rows x rows loops node
1. 36.776 241.666 ↑ 1.0 137,702 1

Unique (cost=22,904.72..23,593.23 rows=137,702 width=81) (actual time=171.253..241.666 rows=137,702 loops=1)

2. 157.974 204.890 ↑ 1.0 137,702 1

Sort (cost=22,904.72..23,248.97 rows=137,702 width=81) (actual time=171.251..204.890 rows=137,702 loops=1)

  • Sort Key: sku_id, active_at DESC, store_id
  • Sort Method: external merge Disk: 14296kB
3. 46.916 46.916 ↑ 1.0 137,702 1

Seq Scan on sku_catalog_price_caches (cost=0.00..4,560.53 rows=137,702 width=81) (actual time=0.013..46.916 rows=137,702 loops=1)

  • Filter: ((store_id IS NULL) AND (active_at <= '2019-03-11 02:41:24.134944'::timestamp without time zone) AND ((currency_code)::text = 'HKD'::text))