[gdal-dev] Ogr2ogr manual and -skipfailures

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Sun Mar 10 09:45:20 PDT 2019


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?

-Jukka Rahkonen-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190310/4e1824c3/attachment.html>


More information about the gdal-dev mailing list