Skip to content
Permalink
Browse files

QgsVectorLayerExporter always uses FastInsert

Since it does nothing with the features after adding them to
the provider, and we want maximum speed possible here.
  • Loading branch information
nyalldawson committed Jun 15, 2017
1 parent fc339f9 commit 0e9d94b1b3b83ad086366e3afa6b4cb9dec98b63
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayerexporter.cpp
@@ -190,7 +190,7 @@ bool QgsVectorLayerExporter::flushBuffer()
if ( mFeatureBuffer.count() <= 0 )
return true;

if ( !mProvider->addFeatures( mFeatureBuffer ) )
if ( !mProvider->addFeatures( mFeatureBuffer, QgsFeatureSink::FastInsert ) )
{
QStringList errors = mProvider->errors();
mProvider->clearErrors();

0 comments on commit 0e9d94b

Please sign in to comment.
You can’t perform that action at this time.