explain.depesz.com

PostgreSQL's explain analyze made readable

Result: yxHk

Settings
# exclusive inclusive rows x rows loops node
1. 23.666 4,218.870 ↑ 9.6 15,080 1

Gather (cost=1,068.56..1,554,895.43 rows=145,054 width=20) (actual time=217.149..4,218.870 rows=15,080 loops=1)

  • Workers Planned: 1
  • Workers Launched: 1
  • Functions: 104
  • Options: Inlining true, Optimization true, Expressions true, Deforming true
  • Timing: Generation 8.223 ms, Inlining 30.416 ms, Optimization 277.411 ms, Emission 152.321 ms, Total 468.371 ms
2. 3.571 4,195.204 ↑ 11.3 7,540 2 / 2

Nested Loop (cost=68.56..1,539,390.03 rows=85,326 width=20) (actual time=233.449..4,195.204 rows=7,540 loops=2)

3. 0.523 238.018 ↑ 1.1 3,206 2 / 2

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

4. 237.094 237.477 ↑ 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=231.004..237.477 rows=3,206 loops=2)

  • Recheck Cond: (layer_id = ANY ('{9}'::integer[]))
  • Heap Blocks: exact=1,587
5. 0.384 0.384 ↓ 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.767..0.767 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.006..0.006 rows=0 loops=1)

  • Index Cond: (layer_id = ANY ('{9}'::integer[]))
7. 0.004 0.004 ↓ 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.007..0.007 rows=0 loops=1)

  • Index Cond: (layer_id = ANY ('{9}'::integer[]))
8. 0.004 0.004 ↓ 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.007..0.007 rows=0 loops=1)

  • Index Cond: (layer_id = ANY ('{9}'::integer[]))
9. 0.008 0.008 ↓ 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.016..0.016 rows=0 loops=1)

  • Index Cond: (layer_id = ANY ('{9}'::integer[]))
10. 6.413 3,953.615 ↑ 3.0 2 6,413 / 2

Append (cost=0.42..419.10 rows=6 width=1,888) (actual time=1.172..1.233 rows=2 loops=6,413)

11. 6.413 6.413 ↓ 0.0 0 6,413 / 2

Index Scan using network_points_layer_id_idx on network_points network_points_1 (cost=0.42..27.64 rows=1 width=48) (actual time=0.002..0.002 rows=0 loops=6,413)

  • Index Cond: (layer_id = 613)
  • Filter: st_intersects(network_points.geom, geom)
12. 3.207 3.207 ↓ 0.0 0 6,413 / 2

Index Scan using network_lines_layer_id_idx on network_lines network_lines_1 (cost=0.42..27.64 rows=1 width=124) (actual time=0.001..0.001 rows=0 loops=6,413)

  • Index Cond: (layer_id = 613)
  • Filter: st_intersects(network_points.geom, geom)
13. 3.207 3.207 ↓ 0.0 0 6,413 / 2

Index Scan using nonnetwork_points_layer_id_idx on nonnetwork_points nonnetwork_points_1 (cost=0.42..26.63 rows=1 width=48) (actual time=0.001..0.001 rows=0 loops=6,413)

  • Index Cond: (layer_id = 613)
  • Filter: st_intersects(network_points.geom, geom)
14. 3.207 3.207 ↓ 0.0 0 6,413 / 2

Index Scan using nonnetwork_lines_layer_id_idx on nonnetwork_lines nonnetwork_lines_1 (cost=0.41..27.63 rows=1 width=102) (actual time=0.001..0.001 rows=0 loops=6,413)

  • Index Cond: (layer_id = 613)
  • Filter: st_intersects(network_points.geom, geom)
15. 224.455 3,931.169 ↑ 1.0 2 6,413 / 2

Bitmap Heap Scan on nonnetwork_polygons nonnetwork_polygons_1 (cost=257.30..309.53 rows=2 width=1,888) (actual time=1.165..1.226 rows=2 loops=6,413)

  • Recheck Cond: (layer_id = 613)
  • Filter: st_intersects(network_points.geom, geom)
  • Rows Removed by Filter: 2
  • Heap Blocks: exact=10,120
16. 6.312 3,706.714 ↓ 0.0 0 6,413 / 2

BitmapAnd (cost=257.30..257.30 rows=2 width=0) (actual time=1.156..1.156 rows=0 loops=6,413)

17. 493.801 493.801 ↑ 1.8 15 6,413 / 2

Bitmap Index Scan on nonnetwork_polygons_geom_idx (cost=0.00..1.07 rows=27 width=0) (actual time=0.154..0.154 rows=15 loops=6,413)

  • Index Cond: (geom && network_points.geom)
18. 3,206.601 3,206.601 ↓ 1.0 23,600 6,306 / 2

Bitmap Index Scan on nonnetwork_polygons_layer_id_idx (cost=0.00..250.15 rows=23,324 width=0) (actual time=1.017..1.017 rows=23,600 loops=6,306)

  • Index Cond: (layer_id = 613)
Execution time : 4,224.968 ms