explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 1Q6S : Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: plan #hvgr; plan #vG1; plan #5uPj; plan #tJir; plan #4Aiq; plan #wXyW

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.000 0.027 ↑ 1.0 1 1

Aggregate (cost=16.75..16.77 rows=1 width=8) (actual time=0.026..0.027 rows=1 loops=1)

2.          

Initplan (forAggregate)

3. 0.017 0.017 ↓ 0.0 0 1

Index Scan using tag_id_container_no_map_tag_id_container_no_tag_status_idx on tag_id_container_no_map (cost=0.42..8.45 rows=1 width=8) (actual time=0.017..0.017 rows=0 loops=1)

  • Index Cond: (((tag_id)::text = 'ABC'::text) AND ((tag_status)::text = 'ACTIVE'::text))
4. 0.023 0.023 ↓ 0.0 0 1

Index Scan using rfid_txn_details_tag_id_created_date_idx on rfid_txn_details (cost=0.28..8.31 rows=1 width=0) (actual time=0.023..0.023 rows=0 loops=1)

  • Index Cond: (((tag_id)::text = 'ABC'::text) AND (created_date >= $0))
  • Filter: ((txn_date >= 5379056) AND (location_master_sl_no = 4) AND (event_id = 12))