explain.depesz.com

PostgreSQL's explain analyze made readable

Result: kSw8

Settings
# exclusive inclusive rows x rows loops node
1. 0.539 179.986 ↑ 675,800,279.9 299 1

Nested Loop Left Join (cost=0.00..9,093,311,580.98 rows=202,064,283,698 width=16) (actual time=59.704..179.986 rows=299 loops=1)

  • Output: l.id
  • Join Filter: point_eq(d0.origin_point, l.destination_point)
  • Rows Removed by Join Filter: 6,566
2. 0.620 151.341 ↑ 26,169.5 299 1

Nested Loop Left Join (cost=0.00..405,270.43 rows=7,824,671 width=32) (actual time=31.882..151.341 rows=299 loops=1)

  • Output: l.id, l.destination_point
  • Join Filter: point_eq(d.destination_point, l.origin_point)
  • Rows Removed by Join Filter: 6,570
3. 0.618 120.522 ↑ 1.0 299 1

Nested Loop Left Join (cost=0.00..40,525.32 rows=303 width=48) (actual time=1.895..120.522 rows=299 loops=1)

  • Output: l.id, l.origin_point, l.destination_point
  • Join Filter: (l.carrier_groups ? c.carriergroupid)
  • Rows Removed by Join Filter: 5,083
4. 119.605 119.605 ↑ 1.0 299 1

Seq Scan on v5search.loads l (cost=0.00..36,504.72 rows=303 width=80) (actual time=1.878..119.605 rows=299 loops=1)

  • Output: l.id, l.origin_point, l.destination_point, l.carrier_groups
  • Filter: (l.dimensions_width > '18'::double precision)
  • Rows Removed by Filter: 260,630
5. 0.295 0.299 ↑ 51.8 17 299

Materialize (cost=0.00..23.20 rows=880 width=32) (actual time=0.000..0.001 rows=17 loops=299)

  • Output: c.carriergroupid
6. 0.004 0.004 ↑ 51.8 17 1

Seq Scan on v5search_private.carrier_group_carrier_array c (cost=0.00..18.80 rows=880 width=32) (actual time=0.002..0.004 rows=17 loops=1)

  • Output: c.carriergroupid
7. 0.231 30.199 ↑ 3,521.5 22 299

Materialize (cost=0.00..12,828.55 rows=77,472 width=16) (actual time=0.014..0.101 rows=22 loops=299)

  • Output: d.destination_point
8. 29.968 29.968 ↑ 3,521.5 22 1

Seq Scan on public.deadhead d (cost=0.00..12,441.19 rows=77,472 width=16) (actual time=4.024..29.968 rows=22 loops=1)

  • Output: d.destination_point
  • Filter: point_eq(d.origin_point, '(-87.8950999999999993,41.9724000000000004)'::point)
  • Rows Removed by Filter: 232,536
9. 0.303 28.106 ↑ 3,521.5 22 299

Materialize (cost=0.00..12,828.55 rows=77,472 width=16) (actual time=0.018..0.094 rows=22 loops=299)

  • Output: d0.origin_point
10. 27.803 27.803 ↑ 3,521.5 22 1

Seq Scan on public.deadhead d0 (cost=0.00..12,441.19 rows=77,472 width=16) (actual time=5.498..27.803 rows=22 loops=1)

  • Output: d0.origin_point
  • Filter: point_eq(d0.destination_point, '(-95.2335999999999956,29.767199999999999)'::point)
  • Rows Removed by Filter: 232,536
Planning time : 0.128 ms
Execution time : 180.045 ms