explain.depesz.com

PostgreSQL's explain analyze made readable

Result: DDl3

Settings
# exclusive inclusive rows x rows loops node
1. 0.137 15.437 ↓ 1.4 574 1

Sort (cost=2,109.51..2,110.54 rows=412 width=354) (actual time=15.423..15.437 rows=574 loops=1)

  • Sort Key: route.departure
  • Sort Method: quicksort Memory: 131kB
2. 9.305 15.300 ↓ 1.4 574 1

Index Scan using transport_route_unloading_datetime_index on route (cost=1,916.83..2,091.62 rows=412 width=354) (actual time=14.853..15.300 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 (NOT (hashed SubPlan 1)) AND (firm_id = 12) AND (shipping = 0))
  • Rows Removed by Filter: 287
3.          

SubPlan (for Index Scan)

4. 5.995 5.995 ↓ 1.0 57,668 1

Index Only Scan using transport_itinerary_route_id_index on itinerary (cost=0.29..1,772.39 rows=57,606 width=4) (actual time=0.043..5.995 rows=57,668 loops=1)

  • Index Cond: (route_id IS NOT NULL)
  • Heap Fetches: 5380
Planning time : 0.606 ms
Execution time : 15.536 ms