Skip to content

Commit

Permalink
Merge pull request #36963 from elpaso/bugfix-join-issues
Browse files Browse the repository at this point in the history
Avoid useless join fetches when joined table is empty
  • Loading branch information
elpaso committed Jun 4, 2020
2 parents eacca23 + 4145898 commit 739f4de
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 739f4de

Please sign in to comment.