explain.depesz.com

PostgreSQL's explain analyze made readable

Result: F7Cd

Settings
# exclusive inclusive rows x rows loops node
1. 704.598 18,007.762 ↓ 18.3 38,932 1

Hash Join (cost=6,793.31..15,752,765.58 rows=2,125 width=304) (actual time=936.355..18,007.762 rows=38,932 loops=1)

  • Hash Cond: (road_segments.trip_id = road_movements.trip_id)
2. 791.436 16,701.531 ↓ 4.8 2,799,258 1

Nested Loop (cost=187.26..15,744,633.32 rows=579,383 width=195) (actual time=309.604..16,701.531 rows=2,799,258 loops=1)

3. 78.673 378.624 ↓ 3.4 2,881 1

Bitmap Heap Scan on v_transit_roads (cost=91.63..8,373.54 rows=850 width=187) (actual time=309.316..378.624 rows=2,881 loops=1)

  • Recheck Cond: (geometry && '0103000020110F000001000000050000008FC2B976272970415C8FE237662F48C18FC2B97627297041EC51F818D67B48C1E17ADC72B5327041EC51F818D67B48C1E17ADC72B53270415C8FE237662F48C18FC2B976272970415C8FE237662F48C1'::geometry)
  • Filter: _st_intersects(geometry, '0103000020110F000001000000050000008FC2B976272970415C8FE237662F48C18FC2B97627297041EC51F818D67B48C1E17ADC72B5327041EC51F818D67B48C1E17ADC72B53270415C8FE237662F48C18FC2B976272970415C8FE237662F48C1'::geometry)
  • Rows Removed by Filter: 1
  • Heap Blocks: exact=599
4. 299.951 299.951 ↓ 1.1 2,882 1

Bitmap Index Scan on v_transit_roads_geometry_geom_idx (cost=0.00..91.42 rows=2,551 width=0) (actual time=299.951..299.951 rows=2,882 loops=1)

  • Index Cond: (geometry && '0103000020110F000001000000050000008FC2B976272970415C8FE237662F48C18FC2B97627297041EC51F818D67B48C1E17ADC72B5327041EC51F818D67B48C1E17ADC72B53270415C8FE237662F48C18FC2B976272970415C8FE237662F48C1'::geometry)
5. 14,963.914 15,531.471 ↑ 5.2 972 2,881

Bitmap Heap Scan on road_segments (cost=95.63..18,462.60 rows=5,065 width=16) (actual time=0.372..5.391 rows=972 loops=2,881)

  • Recheck Cond: (link_id = v_transit_roads.link_id)
  • Heap Blocks: exact=2799258
6. 567.557 567.557 ↑ 5.2 972 2,881

Bitmap Index Scan on idx_road_segments_link_id (cost=0.00..94.36 rows=5,065 width=0) (actual time=0.197..0.197 rows=972 loops=2,881)

  • Index Cond: (link_id = v_transit_roads.link_id)
7. 3.220 601.633 ↓ 1.1 2,367 1

Hash (cost=6,579.34..6,579.34 rows=2,137 width=117) (actual time=601.632..601.633 rows=2,367 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 402kB
8. 548.805 598.413 ↓ 1.1 2,367 1

Bitmap Heap Scan on road_movements (cost=40.99..6,579.34 rows=2,137 width=117) (actual time=59.490..598.413 rows=2,367 loops=1)

  • Recheck Cond: (commod_id = 3)
  • Heap Blocks: exact=1220
9. 49.608 49.608 ↓ 1.1 2,367 1

Bitmap Index Scan on idx_road_movements_commod_id (cost=0.00..40.45 rows=2,137 width=0) (actual time=49.608..49.608 rows=2,367 loops=1)

  • Index Cond: (commod_id = 3)
Planning time : 338.403 ms