explain.depesz.com

PostgreSQL's explain analyze made readable

Result: pPwt

Settings
# exclusive inclusive rows x rows loops node
1. 308.442 195,979.588 ↓ 9.3 36,284 1

Hash Join (cost=19,086.81..12,465,086.43 rows=3,882 width=304) (actual time=1,481.010..195,979.588 rows=36,284 loops=1)

  • Hash Cond: (road_segments.trip_id = road_movements.trip_id)
2. 88,435.157 195,660.420 ↓ 4.8 2,799,258 1

Hash Join (cost=8,384.17..12,452,853.19 rows=579,383 width=195) (actual time=1,128.718..195,660.420 rows=2,799,258 loops=1)

  • Hash Cond: (road_segments.link_id = v_transit_roads.link_id)
3. 106,102.535 106,102.535 ↑ 1.0 593,771,497 1

Seq Scan on road_segments (cost=0.00..10,885,811.20 rows=593,771,520 width=16) (actual time=0.282..106,102.535 rows=593,771,497 loops=1)

4. 2.907 1,122.728 ↓ 3.4 2,881 1

Hash (cost=8,373.54..8,373.54 rows=850 width=187) (actual time=1,122.726..1,122.728 rows=2,881 loops=1)

  • Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 523kB
5. 1,119.172 1,119.821 ↓ 3.4 2,881 1

Bitmap Heap Scan on v_transit_roads (cost=91.63..8,373.54 rows=850 width=187) (actual time=12.515..1,119.821 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
6. 0.649 0.649 ↓ 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=0.649..0.649 rows=2,882 loops=1)

  • Index Cond: (geometry && '0103000020110F000001000000050000008FC2B976272970415C8FE237662F48C18FC2B97627297041EC51F818D67B48C1E17ADC72B5327041EC51F818D67B48C1E17ADC72B53270415C8FE237662F48C18FC2B976272970415C8FE237662F48C1'::geometry)
7. 2.142 10.726 ↓ 1.1 4,113 1

Hash (cost=10,653.84..10,653.84 rows=3,904 width=117) (actual time=10.726..10.726 rows=4,113 loops=1)

  • Buckets: 8192 (originally 4096) Batches: 1 (originally 1) Memory Usage: 694kB
8. 8.016 8.584 ↓ 1.1 4,113 1

Bitmap Heap Scan on road_movements (cost=74.68..10,653.84 rows=3,904 width=117) (actual time=0.934..8.584 rows=4,113 loops=1)

  • Recheck Cond: (commod_id = 2)
  • Heap Blocks: exact=2378
9. 0.568 0.568 ↓ 1.1 4,113 1

Bitmap Index Scan on idx_road_movements_commod_id (cost=0.00..73.70 rows=3,904 width=0) (actual time=0.568..0.568 rows=4,113 loops=1)

  • Index Cond: (commod_id = 2)
Planning time : 90.122 ms