explain.depesz.com

PostgreSQL's explain analyze made readable

Result: aIg0 : Optimization for: plan #SU3h

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 16,688.281 44,123.288 ↓ 0.0 0 1

Merge Join (cost=36.01..1,937,422.39 rows=995,225 width=146) (actual time=44,123.288..44,123.288 rows=0 loops=1)

  • Merge Cond: (tkts.tem_registro_consumo_id = bcr.id)
  • Join Filter: (CASE WHEN (tkts.last_update > bcr.last_update) THEN tkts.last_update ELSE bcr.last_update END >= to_timestamp('20200105'::text, 'YYYYMMDD'::text))
  • Rows Removed by Join Filter: 17884244
2. 10,236.396 10,236.396 ↓ 3.0 17,884,244 1

Index Scan using idx_bill_ticket_call_rec on bill_tickets tkts (cost=0.44..616,498.11 rows=5,961,415 width=48) (actual time=0.008..10,236.396 rows=17,884,244 loops=1)

  • Filter: (COALESCE(id_tem_bill_ivn_central, (-1)) > 0)
3. 17,198.611 17,198.611 ↑ 1.0 17,884,244 1

Index Scan using idx_bill_call_records_id_status on tem_registro_consumo bcr (cost=0.44..1,176,774.39 rows=18,012,609 width=102) (actual time=0.025..17,198.611 rows=17,884,244 loops=1)