<div dir="ltr"><br><br>On Thu, Dec 20, 2018 at 10:34 AM Markus Metz <<a href="mailto:markus.metz.giswork@gmail.com">markus.metz.giswork@gmail.com</a>> wrote:<br>><br>><br>><br>> On Thu, Nov 29, 2018 at 3:43 PM Moritz Lennert <<a href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonline.be</a>> wrote:<br>> ><br>> > Hi,<br>> ><br>> > I have large amount of vector maps (~ 400) which each has hundreds of<br>> > thousands of areas and over 150 attribute columns. I'm looking for the<br>> > most efficient way to export these to a format I can share with<br>> > non-GRASS GIS users. My favourite would probably be Geopackage, amongst<br>> > others because the attribute column names are sometimes fairly long,<br>> > thus making export to a DBF based format not easily feasible.<br>> ><br>> > I've seen several sources of information about possible performance<br>> > increases, either in the SQLite world (as a Geopackage is based on<br>> > SQLite) or in the OGR SQLite driver page.<br>> ><br>> > For OGR [1], there is the -gt option to ogr2ogr which allows increasing<br>> > the number of features per transaction (or even running the entire<br><div>> > conversion in one single transaction). <br></div><div>[...]<br></div><div>> > How about the</div>> > transaction option ?<br><div>></div><div>> I'm afraid the transaction option (equivalent to ogr2ogr -gt) is out of control of v.out.ogr because it is format-specific and v.out.ogr does not use the output format drivers directly, instead it uses the generic OGR interface. However, we could try GDALDatasetStartTransaction()/GDALDatasetCommitTransaction() in v.out.ogr.</div><div><br></div><div>v.out.ogr already uses the OGR interface to start and commit transactions when possible.</div><div><br></div><div>Another reason for slow export can be a buggy NFS implementation if you export to a NFS mount: check if v.out.ogr is running at 100%. If not you could export to a local temp dir and then copy the GeoPackages to the final destination.</div><div><br></div><div>Markus M</div><br></div>