explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Nb08 : Optimization for: Optimization for: plan #hMUF; plan #DsX

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.000 0.030 ↓ 0.0 0 1

Limit (cost=112.81..112.81 rows=1 width=28) (actual time=0.030..0.030 rows=0 loops=1)

2.          

Initplan (forLimit)

3. 0.020 0.020 ↑ 1.0 1 1

Index Scan using tag_id_container_no_map_tag_id_tag_status_idx on tag_id_container_no_map (cost=0.42..8.45 rows=1 width=8) (actual time=0.019..0.020 rows=1 loops=1)

  • Index Cond: (((tag_id)::text = 'TAGID0000005'::text) AND ((tag_status)::text = 'ACTIVE'::text))
4. 0.003 0.028 ↓ 0.0 0 1

Sort (cost=104.37..104.47 rows=41 width=28) (actual time=0.028..0.028 rows=0 loops=1)

  • Sort Key: rfid_txn_details.txn_date DESC
  • Sort Method: quicksort Memory: 25kB
5. 0.002 0.025 ↓ 0.0 0 1

Bitmap Heap Scan on rfid_txn_details (cost=32.97..104.16 rows=41 width=28) (actual time=0.025..0.025 rows=0 loops=1)

  • Recheck Cond: (((tag_id)::text = 'TAGID0000005'::text) AND (created_date >= $0))
  • Filter: (location_master_sl_no = 7)
6. 0.023 0.023 ↓ 0.0 0 1

Bitmap Index Scan on rfid_txn_details_tag_id_created_date_txn_date_idx (cost=0.00..32.96 rows=868 width=0) (actual time=0.023..0.023 rows=0 loops=1)

  • Index Cond: (((tag_id)::text = 'TAGID0000005'::text) AND (created_date >= $0))