explain.depesz.com

PostgreSQL's explain analyze made readable

Result: G17L

Settings
# exclusive inclusive rows x rows loops node
1. 2.441 11,837.960 ↑ 9.6 15,080 1

Gather (cost=1,068.56..1,554,895.43 rows=145,054 width=20) (actual time=342.541..11,837.960 rows=15,080 loops=1)

  • Workers Planned: 1
  • Workers Launched: 0
  • Functions: 52
  • Options: Inlining true, Optimization true, Expressions true, Deforming true
  • Timing: Generation 3.673 ms, Inlining 7.728 ms, Optimization 235.698 ms, Emission 94.695 ms, Total 341.794 ms
2. 5.635 11,835.519 ↑ 5.7 15,080 1

Nested Loop (cost=68.56..1,539,390.03 rows=85,326 width=20) (actual time=342.208..11,835.519 rows=15,080 loops=1)

3. 1.065 357.027 ↓ 1.8 6,413 1

Parallel Append (cost=68.14..6,117.02 rows=3,658 width=50) (actual time=339.349..357.027 rows=6,413 loops=1)

4. 355.365 355.919 ↓ 1.8 6,413 1

Parallel Bitmap Heap Scan on network_points (cost=68.14..6,076.72 rows=3,636 width=40) (actual time=339.305..355.919 rows=6,413 loops=1)

  • Recheck Cond: (layer_id = ANY ('{9}'::integer[]))
  • Heap Blocks: exact=3,234
5. 0.554 0.554 ↓ 1.0 6,413 1

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

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

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.004..0.004 rows=0 loops=1)

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

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

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

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

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

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

  • Index Cond: (layer_id = ANY ('{9}'::integer[]))
10. 25.652 11,472.857 ↑ 3.0 2 6,413

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

11. 12.826 12.826 ↓ 0.0 0 6,413

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. 6.413 6.413 ↓ 0.0 0 6,413

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. 6.413 6.413 ↓ 0.0 0 6,413

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. 6.413 6.413 ↓ 0.0 0 6,413

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. 808.038 11,415.140 ↑ 1.0 2 6,413

Bitmap Heap Scan on nonnetwork_polygons nonnetwork_polygons_1 (cost=257.30..309.53 rows=2 width=1,888) (actual time=1.674..1.780 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=22,680
16. 9.256 10,607.102 ↓ 0.0 0 6,413

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

17. 1,359.556 1,359.556 ↑ 1.8 15 6,413

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

  • Index Cond: (geom && network_points.geom)
18. 9,238.290 9,238.290 ↓ 1.0 23,600 6,306

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

  • Index Cond: (layer_id = 613)
Execution time : 11,842.973 ms