Closed benducke closed 1 month ago
SQL statement collation ("chunks") is not a good idea, since the v.edit operations to delete features and the SQL operations needed to delete attribute table rows must be exactly synchronized.
Instead, SQL transaction blocks have been used to gain a little speed:
The script does all of its heavy duty processing within its main loop construct:
while [ ${STOP} -lt 1 ] ; do ... done
The biggest CPU time consumers here are the calls to v.extract, v.edit and db.execute. It should be possible to gain a large speed-ups by executing these in chunks instead of per-feature. A related ticket is this: #56