explain.depesz.com

PostgreSQL's explain analyze made readable

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

Settings

Optimization path:

Optimization(s) for this plan:

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

Limit (cost=140.61..140.62 rows=1 width=16) (actual time=0.861..0.861 rows=0 loops=1)

2.          

Initplan (forLimit)

3. 0.019 0.019 ↓ 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.019..0.019 rows=0 loops=1)

  • Index Cond: (((tag_id)::text = 'ggg'::text) AND ((tag_status)::text = 'ACTIVE'::text))
4. 0.005 0.860 ↓ 0.0 0 1

Sort (cost=132.17..132.17 rows=1 width=16) (actual time=0.860..0.860 rows=0 loops=1)

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

Seq Scan on rfid_txn_details (cost=0.00..132.16 rows=1 width=16) (actual time=0.855..0.855 rows=0 loops=1)

  • Filter: ((created_date >= $0) AND (txn_date >= 5369755) AND ((tag_id)::text = 'ggg'::text) AND (location_master_sl_no = 25))
  • Rows Removed by Filter: 3587
Planning time : 0.220 ms