explain.depesz.com

A tool for finding a real cause for slow queries.

Result: cUlH

options
Did it help? Consider supporting us - Bitcoin address: 12v2hUztAk2LgzQ9H9LMwuU32urHMjZQnq
# exclusive inclusive rows x rows loops node
1. 697.078 10489.251 ↓ 2.0 345196 1

GroupAggregate (cost=128069.06..136479.33 rows=171667 width=20) (actual time=7853.495..10489.251 rows=345196 loops=1)

  • Filter: (max((created)::date) < to_date('2011-12-08'::text, 'yyyy-mm-dd'::text))
2. 9024.205 9792.173 ↓ 1.0 589191 1

Sort (cost=128069.06..129527.88 rows=583526 width=20) (actual time=7853.440..9792.173 rows=589191 loops=1)

  • Sort Key: customerno
  • Sort Method: external merge Disk: 19536kB
3. 767.968 767.968 ↓ 1.0 589191 1

Seq Scan on retail_tb_order i (cost=0.00..48243.50 rows=583526 width=20) (actual time=0.027..767.968 rows=589191 loops=1)

  • Filter: (((dp_id)::text = '57301243'::text) AND (ccms_order_status = ANY ('{21,22,23}'::smallint[])))