N.1065 Fix performance issues.

* Added the bGetCount flag into the cache to differentiate the cache entries for COUNT only.

SVN:trunk[5034]
This commit is contained in:
Eric Espié
2017-10-18 12:53:23 +00:00
parent 73812dc400
commit c94476b9a2

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