explain.depesz.com

PostgreSQL's explain analyze made readable

Result: km7J : pure select

Settings
# exclusive inclusive rows x rows loops node
1. 0.424 194.516 ↑ 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=67.987..194.516 rows=299 loops=1)

  • Output: l.id
  • Join Filter: point_eq(d0.origin_point, l.destination_point)
  • Rows Removed by Join Filter: 6,566
  • Buffers: shared hit=52,316
2. 0.478 159.408 ↑ 26,169.5 299 1

Nested Loop Left Join (cost=0.00..405,270.43 rows=7,824,671 width=32) (actual time=33.739..159.408 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
  • Buffers: shared hit=42,780
3. 0.719 126.937 ↑ 1.0 299 1

Nested Loop Left Join (cost=0.00..40,525.32 rows=303 width=48) (actual time=2.159..126.937 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
  • Buffers: shared hit=33,244
4. 125.919 125.919 ↑ 1.0 299 1

Seq Scan on v5search.loads l (cost=0.00..36,504.72 rows=303 width=80) (actual time=2.133..125.919 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
  • Buffers: shared hit=33,243
5. 0.293 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
  • Buffers: shared hit=1
6. 0.006 0.006 ↑ 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.004..0.006 rows=17 loops=1)

  • Output: c.carriergroupid
  • Buffers: shared hit=1
7. 0.453 31.993 ↑ 3,521.5 22 299

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

  • Output: d.destination_point
  • Buffers: shared hit=9,536
8. 31.540 31.540 ↑ 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.661..31.540 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
  • Buffers: shared hit=9,536
9. 0.483 34.684 ↑ 3,521.5 22 299

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

  • Output: d0.origin_point
  • Buffers: shared hit=9,536
10. 34.201 34.201 ↑ 3,521.5 22 1

Seq Scan on public.deadhead d0 (cost=0.00..12,441.19 rows=77,472 width=16) (actual time=6.232..34.201 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
  • Buffers: shared hit=9,536
Planning time : 0.163 ms
Execution time : 194.588 ms