explain.depesz.com

PostgreSQL's explain analyze made readable

Result: LMw8 : select as function

Settings
# exclusive inclusive rows x rows loops node
1. 0.431 593.348 ↑ 1.0 299 1

Unique (cost=0.42..9,598,577,352.29 rows=303 width=16) (actual time=85.483..593.348 rows=299 loops=1)

  • Output: l.id
2. 0.514 592.917 ↑ 675,800,279.9 299 1

Nested Loop Left Join (cost=0.42..9,093,416,643.05 rows=202,064,283,698 width=16) (actual time=85.482..592.917 rows=299 loops=1)

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

Nested Loop Left Join (cost=0.42..510,332.50 rows=7,824,671 width=32) (actual time=46.179..552.636 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
4. 1.508 515.230 ↑ 1.0 299 1

Nested Loop Left Join (cost=0.42..145,587.39 rows=303 width=48) (actual time=10.112..515.230 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
5. 513.423 513.423 ↑ 1.0 299 1

Index Scan using loads_pk on v5search.loads l (cost=0.42..141,566.79 rows=303 width=80) (actual time=10.093..513.423 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
6. 0.292 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
7. 0.007 0.007 ↑ 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.005..0.007 rows=17 loops=1)

  • Output: c.carriergroupid
8. 0.754 36.777 ↑ 3,521.5 22 299

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

  • Output: d.destination_point
9. 36.023 36.023 ↑ 3,521.5 22 1

Seq Scan on public.deadhead d (cost=0.00..12,441.19 rows=77,472 width=16) (actual time=5.107..36.023 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
10. 0.523 39.767 ↑ 3,521.5 22 299

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

  • Output: d0.origin_point
11. 39.244 39.244 ↑ 3,521.5 22 1

Seq Scan on public.deadhead d0 (cost=0.00..12,441.19 rows=77,472 width=16) (actual time=7.928..39.244 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.544 ms
Execution time : 593.465 ms