Skip to content

Commit

Permalink
Avoid useless join fetches when joined table is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jun 4, 2020
1 parent 4e592ae commit 4145898
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/qgsvectorlayerfeatureiterator.cpp
Expand Up @@ -1014,6 +1014,12 @@ void QgsVectorLayerFeatureIterator::FetchJoinInfo::addJoinedAttributesCached( Qg

void QgsVectorLayerFeatureIterator::FetchJoinInfo::addJoinedAttributesDirect( QgsFeature &f, const QVariant &joinValue ) const
{
// Shortcut
if ( joinLayer && joinLayer->featureCount() < 1 )
{
return;
}

// no memory cache, query the joined values by setting substring
QString subsetString;

Expand Down

0 comments on commit 4145898

Please sign in to comment.