Skip to content
Permalink
Browse files

Optimize request for QgsFeatureFilterModel

  • Loading branch information
m-kuhn committed Oct 26, 2017
1 parent a15c183 commit a2b79d47b9753853d6526266195731d43c471b2d
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/qgsfeaturefiltermodel.cpp
@@ -290,6 +290,10 @@ void QgsFeatureFilterModel::scheduledReload()

request.setFilterExpression( filterClause );
}
QSet<QString> attributes = request.filterExpression().referencedColumns();
attributes << mIdentifierField;
request.setSubsetOfAttributes( attributes );
request.setFlags( QgsFeatureRequest::NoGeometry );

request.setLimit( 100 );

0 comments on commit a2b79d4

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