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 10,489.251 ↓ 2.0 345,196 1

GroupAggregate (cost=128,069.06..136,479.33 rows=171,667 width=20) (actual time=7,853.495..10,489.251 rows=345,196 loops=1)

  • Filter: (max((created)::date) < to_date('2011-12-08'::text, 'yyyy-mm-dd'::text))
2. 9,024.205 9,792.173 ↓ 1.0 589,191 1

Sort (cost=128,069.06..129,527.88 rows=583,526 width=20) (actual time=7,853.440..9,792.173 rows=589,191 loops=1)

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

Seq Scan on retail_tb_order i (cost=0.00..48,243.50 rows=583,526 width=20) (actual time=0.027..767.968 rows=589,191 loops=1)

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