explain.depesz.com

PostgreSQL's explain analyze made readable

Result: KOGo : Optimization for: Q3; plan #SboO

Settings

Optimization path:

# exclusive inclusive rows x rows loops node
1. 0.001 0.046 ↑ 1.0 1 1

Limit (cost=8.59..8.6 rows=1 width=108) (actual time=0.046..0.046 rows=1 loops=1)

2. 0.010 0.045 ↑ 1.0 1 1

Sort (cost=8.59..8.6 rows=1 width=108) (actual time=0.045..0.045 rows=1 loops=1)

  • Sort Key: ctr_price_update.file_timestamp_date DESC NULLS LAST, ctr_price_update.id DESC
  • Sort Method: quicksort Memory: 25kB
3. 0.035 0.035 ↓ 2.0 2 1

Index Scan using ctr_price_update_idxproductandstatus on ctr_price_update ctr_price_update (cost=0.55..8.58 rows=1 width=108) (actual time=0.032..0.035 rows=2 loops=1)

  • Index Cond: ((ctr_price_update.sku = 'O2S14W19125B111'::text) AND (ctr_price_update.designer_id = 'H006B'::text) AND (ctr_price_update.barcode IS NULL) AND (ctr_price_update.tenant_id = '10000'::text) AND (ctr_price_update.site_id = '9359'::text) AND (ctr_price_update.price_status = 'FC'::bpchar))
  • Filter: ((ctr_price_update.price_type IS NULL) AND (ctr_price_update.activity_type = ANY ('{PRP-CHPX,PRP}'::text[])))