mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user