Skip to content

Commit

Permalink
Optimize request for QgsFeatureFilterModel
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 26, 2017
1 parent a15c183 commit a2b79d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/qgsfeaturefiltermodel.cpp
Expand Up @@ -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 );

Expand Down

0 comments on commit a2b79d4

Please sign in to comment.