explain.depesz.com

PostgreSQL's explain analyze made readable

Result: lS42

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

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

  • Workers Planned: 1
  • Workers Launched: 1
  • Functions: 104
  • Options: Inlining true, Optimization true, Expressions true, Deforming true
  • Timing: Generation 6.272 ms, Inlining 26.782 ms, Optimization 266.020 ms, Emission 150.710 ms, Total 449.785 ms
2. 1.189 4,063.145 ↑ 11.3 7,540 2 / 2

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

3. 0.459 226.982 ↑ 1.1 3,206 2 / 2

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

4. 226.272 226.512 ↑ 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=222.445..226.512 rows=3,206 loops=2)

  • Recheck Cond: (layer_id = ANY ('{9}'::integer[]))
  • Heap Blocks: exact=1,655
5. 0.240 0.240 ↓ 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.480..0.480 rows=6,413 loops=1)

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

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

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

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

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

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

11. 3.207 3.207 ↓ 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.001..0.001 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. 192.390 3,812.529 ↑ 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.138..1.189 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=12,440
16. 2.250 3,620.139 ↓ 0.0 0 6,413 / 2

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

17. 461.736 461.736 ↑ 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.144..0.144 rows=15 loops=6,413)

  • Index Cond: (geom && network_points.geom)
18. 3,156.153 3,156.153 ↓ 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.001..1.001 rows=23,600 loops=6,306)

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