explain.depesz.com

PostgreSQL's explain analyze made readable

Result: PCgS

Settings
# exclusive inclusive rows x rows loops node
1. 34.406 3,338.367 ↑ 91.3 130,718 1

Gather (cost=1,068.42..19,173,510.90 rows=11,931,695 width=20) (actual time=237.628..3,338.367 rows=130,718 loops=1)

  • Workers Planned: 1
  • Workers Launched: 1
  • Functions: 112
  • Options: Inlining true, Optimization true, Expressions true, Deforming true
  • Timing: Generation 12.000 ms, Inlining 44.505 ms, Optimization 282.911 ms, Emission 156.502 ms, Total 495.917 ms
2. 10.615 3,303.961 ↑ 107.4 65,359 2 / 2

Nested Loop (cost=68.42..17,979,341.40 rows=7,018,644 width=20) (actual time=242.882..3,303.961 rows=65,359 loops=2)

3. 0.409 247.171 ↑ 1.1 3,206 2 / 2

Parallel Append (cost=68.14..6,117.02 rows=3,658 width=50) (actual time=242.741..247.171 rows=3,206 loops=2)

4. 246.458 246.747 ↑ 1.1 3,206 2 / 2

Parallel Bitmap Heap Scan on network_points (cost=68.14..6,076.72 rows=3,636 width=40) (actual time=242.726..246.747 rows=3,206 loops=2)

  • Recheck Cond: (layer_id = ANY ('{9}'::integer[]))
  • Heap Blocks: exact=1,593
5. 0.289 0.289 ↓ 1.0 6,413 1 / 2

Bitmap Index Scan on network_points_layer_id_idx (cost=0.00..66.59 rows=6,182 width=0) (actual time=0.578..0.578 rows=6,413 loops=1)

  • Index Cond: (layer_id = ANY ('{9}'::integer[]))
6. 0.003 0.003 ↓ 0.0 0 1 / 2

Parallel Index Scan using nonnetwork_polygons_layer_id_idx on nonnetwork_polygons (cost=0.42..15.12 rows=19 width=1,880) (actual time=0.005..0.005 rows=0 loops=1)

  • Index Cond: (layer_id = ANY ('{9}'::integer[]))
7. 0.003 0.003 ↓ 0.0 0 1 / 2

Parallel Index Scan using network_lines_layer_id_idx on network_lines (cost=0.42..2.64 rows=1 width=116) (actual time=0.005..0.006 rows=0 loops=1)

  • Index Cond: (layer_id = ANY ('{9}'::integer[]))
8. 0.003 0.003 ↓ 0.0 0 1 / 2

Parallel Index Scan using nonnetwork_points_layer_id_idx on nonnetwork_points (cost=0.42..1.63 rows=1 width=40) (actual time=0.006..0.006 rows=0 loops=1)

  • Index Cond: (layer_id = ANY ('{9}'::integer[]))
9. 0.006 0.006 ↓ 0.0 0 1 / 2

Parallel Index Scan using nonnetwork_lines_layer_id_idx on nonnetwork_lines (cost=0.41..2.62 rows=1 width=94) (actual time=0.012..0.012 rows=0 loops=1)

  • Index Cond: (layer_id = ANY ('{9}'::integer[]))
10. 12.826 3,046.175 ↑ 9.6 20 6,413 / 2

Append (cost=0.29..4,911.48 rows=192 width=316) (actual time=0.091..0.950 rows=20 loops=6,413)

11. 487.388 487.388 ↑ 27.7 3 6,413 / 2

Index Scan using network_points_geom_idx on network_points network_points_1 (cost=0.29..2,120.54 rows=83 width=48) (actual time=0.091..0.152 rows=3 loops=6,413)

  • Index Cond: (geom && network_points.geom)
  • Filter: st_intersects(network_points.geom, geom)
  • Rows Removed by Filter: 1
12. 756.734 756.734 ↑ 4.6 7 6,413 / 2

Index Scan using network_lines_geom_idx on network_lines network_lines_1 (cost=0.28..818.14 rows=32 width=124) (actual time=0.123..0.236 rows=7 loops=6,413)

  • Index Cond: (geom && network_points.geom)
  • Filter: st_intersects(network_points.geom, geom)
  • Rows Removed by Filter: 14
13. 128.260 128.260 ↑ 24.0 2 6,413 / 2

Index Scan using nonnetwork_points_geom_idx on nonnetwork_points nonnetwork_points_1 (cost=0.29..1,227.26 rows=48 width=48) (actual time=0.038..0.040 rows=2 loops=6,413)

  • Index Cond: (geom && network_points.geom)
  • Filter: st_intersects(network_points.geom, geom)
  • Rows Removed by Filter: 6
14. 22.445 22.445 ↓ 0.0 0 6,413 / 2

Index Scan using nonnetwork_lines_geom_idx on nonnetwork_lines nonnetwork_lines_1 (cost=0.28..52.97 rows=2 width=102) (actual time=0.007..0.007 rows=0 loops=6,413)

  • Index Cond: (geom && network_points.geom)
  • Filter: st_intersects(network_points.geom, geom)
  • Rows Removed by Filter: 0
15. 1,638.522 1,638.522 ↑ 3.0 9 6,413 / 2

Index Scan using nonnetwork_polygons_geom_idx on nonnetwork_polygons nonnetwork_polygons_1 (cost=0.28..691.61 rows=27 width=1,888) (actual time=0.161..0.511 rows=9 loops=6,413)

  • Index Cond: (geom && network_points.geom)
  • Filter: st_intersects(network_points.geom, geom)
  • Rows Removed by Filter: 6
Execution time : 3,352.844 ms