[gdal-dev] Ogr2ogr manual and -skipfailures
Even Rouault
even.rouault at spatialys.com
Sun Mar 10 10:39:23 PDT 2019
On dimanche 10 mars 2019 16:45:20 CET Rahkonen Jukka (MML) wrote:
> Hi,
>
> On page https://www.gdal.org/ogr2ogr.html I can read from the Performance
> hints: "For example, for SQLite, explicitly defining -gt 65536 ensures
> optimal performance while populating some table containing many hundredth
> thousand or million rows. However, note that if there are failed
> insertions, the scope of -skipfailures is a whole transaction."
>
> I have thought that -skipfailures overrides -gt and sets the size of
> transactions into 1 and there is also a comment in
> https://github.com/OSGeo/gdal/blob/master/gdal/apps/ogr2ogr_lib.cpp on row
> 5190: /* If skipfailures is already set we should not
> modify nGroupTransactions = 1 #2409 */
>
> Does -skipfailures set the size of a transaction into 1 or not?
Yes, -skipfailures overrides -gt. The doc seems to be behind
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list