explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 6yJ : 123123

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

Limit (cost=150.58..150.59 rows=1 width=854) (actual time=0.560..0.562 rows=1 loops=1)

2. 0.053 0.560 ↑ 1.0 1 1

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

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

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

4. 0.072 0.126 ↓ 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.075..0.126 rows=27 loops=1)

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

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

  • Index Cond: (route_id = 49)
6. 0.351 0.351 ↑ 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.013..0.013 rows=1 loops=27)

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