Speed up pgr_createTopology on large networks? #2255
-
Is there a way to speed up pgr_createTopology, or modify the number of processed edges per iteration used in pgr_createTopology? Frequent creations of topologies of larger networks (i.e. 1-8million edges) are very time consuming.
Nb. the input table is vacuumed, clustered and columns geom, id, source and target are indexed. Similar questions have been posted at alternative forums (e.g. stackexchange, or stackexchange). Unfortunately, existing solutions are for Python which I am not using, or other suggestions don't show any effect. Set up: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 16 replies
-
@kimonkrenz this is not a full answer to your problem yet but you may experience some speedups using https://docs.pgrouting.org/latest/en/pgr_extractVertices.html instead and afterwards computing contracted edges again https://gis.stackexchange.com/questions/422316/postgis-unsplit-merge-lines-that-have-coincident-endpoints ? What do you think @cvvergara? |
Beta Was this translation helpful? Give feedback.
@kimonkrenz this is not a full answer to your problem yet but you may experience some speedups using https://docs.pgrouting.org/latest/en/pgr_extractVertices.html instead and afterwards computing contracted edges again https://gis.stackexchange.com/questions/422316/postgis-unsplit-merge-lines-that-have-coincident-endpoints ? What do you think @cvvergara?