Skip to content
Permalink
Browse files

Merge pull request #36963 from elpaso/bugfix-join-issues

Avoid useless join fetches when joined table is empty
  • Loading branch information
elpaso committed Jun 4, 2020
2 parents eacca23 + 4145898 commit 739f4de1a7e24417b5293f2223d54202b97ebdb2
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/qgsvectorlayerfeatureiterator.cpp
@@ -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;

0 comments on commit 739f4de

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