Retrofit from trunk

N.1065 Fix performance issues.
* Added the bGetCount flag into the cache to differentiate the cache entries for COUNT only. [from revision 5034]

SVN:2.4[5035]
This commit is contained in:
Eric Espié
2017-10-18 12:58:32 +00:00
parent e09fa0ffc1
commit ae8311e224

View File

@@ -1502,7 +1502,7 @@ class DBObjectSearch extends DBSearch
{
$sModifierProperties = '';
}
$aContextData['aModifierProperties'] = $aModifierProperties;
$aContextData['sModifierProperties'] = $sModifierProperties;
$sRawId = $sOqlQuery.$sModifierProperties;
if (!is_null($aAttToLoad))
@@ -1519,6 +1519,7 @@ class DBObjectSearch extends DBSearch
}
$aContextData['aGroupByExpr'] = $aGroupByExpr;
$sRawId .= $bGetCount;
$aContextData['bGetCount'] = $bGetCount;
if (is_array($aSelectedClasses))
{
$sRawId .= implode(',', $aSelectedClasses); // Unions may alter the list of selected columns