Skip to content
Permalink
Browse files

Avoid useless join fetches when joined table is empty

  • Loading branch information
elpaso committed Jun 4, 2020
1 parent 4e592ae commit 414589876e71d8096b989fde78b752c3e2336de3
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 4145898

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