explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Ind2

Settings
# exclusive inclusive rows x rows loops node
1. 0.161 1.506 ↑ 1.4 574 1

Sort (cost=1,236.99..1,239.04 rows=823 width=354) (actual time=1.490..1.506 rows=574 loops=1)

  • Sort Key: route.departure
  • Sort Method: quicksort Memory: 131kB
2. 0.000 1.345 ↑ 1.4 574 1

Nested Loop Left Join (cost=0.71..1,197.13 rows=823 width=354) (actual time=0.023..1.345 rows=574 loops=1)

3. 0.929 0.929 ↑ 1.4 574 1

Index Scan using transport_route_unloading_datetime_index on route (cost=0.42..171.83 rows=823 width=354) (actual time=0.018..0.929 rows=574 loops=1)

  • Index Cond: (unloading_datetime > '2020-01-01 00:00:00'::timestamp without time zone)
  • Filter: ((transport_route_id IS NULL) AND (loading_datetime < '2020-01-31 23:59:59'::timestamp without time zone) AND (firm_id = 12) AND (shipping = 0))
  • Rows Removed by Filter: 287
4. 0.574 0.574 ↓ 0.0 0 574

Index Only Scan using transport_itinerary_route_id_index on itinerary (cost=0.29..1.24 rows=1 width=4) (actual time=0.001..0.001 rows=0 loops=574)

  • Index Cond: (route_id = route.route_id)
  • Heap Fetches: 0
Planning time : 2.891 ms
Execution time : 1.556 ms