explain.depesz.com

PostgreSQL's explain analyze made readable

Result: CKXX : 234

Settings
# exclusive inclusive rows x rows loops node
1. 0.002 0.354 ↑ 1.0 1 1

Limit (cost=150.58..150.59 rows=1 width=854) (actual time=0.353..0.354 rows=1 loops=1)

2. 0.044 0.352 ↑ 1.0 1 1

Sort (cost=150.58..150.59 rows=1 width=854) (actual time=0.352..0.352 rows=1 loops=1)

  • Sort Key: rrs.priority
  • Sort Method: top-N heapsort Memory: 25kB
3. 0.039 0.308 ↓ 27.0 27 1

Nested Loop Left Join (cost=4.95..150.57 rows=1 width=854) (actual time=0.071..0.308 rows=27 loops=1)

4. 0.051 0.080 ↓ 27.0 27 1

Bitmap Heap Scan on uzgps_routing_route_station rrs (cost=4.67..142.26 rows=1 width=172) (actual time=0.045..0.080 rows=27 loops=1)

  • Recheck Cond: (route_id = 49)
  • Filter: (status = 'A'::bpchar)
  • Heap Blocks: exact=4
5. 0.029 0.029 ↑ 1.9 27 1

Bitmap Index Scan on uzgps_routing_route_station_route_id_priority_idx (cost=0.00..4.67 rows=51 width=0) (actual time=0.029..0.029 rows=27 loops=1)

  • Index Cond: (route_id = 49)
6. 0.189 0.189 ↑ 1.0 1 27

Index Scan using uzgps_routing_station_pkey on uzgps_routing_station rs (cost=0.28..8.30 rows=1 width=682) (actual time=0.007..0.007 rows=1 loops=27)

  • Index Cond: (rrs.station_id = id)
  • Filter: (status = 'A'::bpchar)