The final step of v.net.models involves exporting the output nodes.
Although these are normally significantly fewer geometries than the output links, this steps takes a long time.
The processing steps in question occur after this message:
g.message -i "Writing output nodes map:"
There output loop contains v.db.select statements and calls to db.execute.
Options for optimization:
Make the output of (most) node attributes optional (might not always be worth the time; often the mere labels might be enough).
Process the db.execute statements in chunks (see #56 ).
The final step of v.net.models involves exporting the output nodes. Although these are normally significantly fewer geometries than the output links, this steps takes a long time.
The processing steps in question occur after this message:
g.message -i "Writing output nodes map:"
There output loop contains v.db.select statements and calls to db.execute.
Options for optimization: