Skip to content

Commit

Permalink
QgsVectorLayerExporter always uses FastInsert
Browse files Browse the repository at this point in the history
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 0e9d94b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayerexporter.cpp 100644 → 100755
Expand Up @@ -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();
Expand Down

0 comments on commit 0e9d94b

Please sign in to comment.