Pārlūkot izejas kodu

N.1065 Fix performance issues.
* Added the bGetCount flag into the cache to differentiate the cache entries for COUNT only.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@5034 a333f486-631f-4898-b8df-5754b55c2be0

eespie 7 gadi atpakaļ
vecāks
revīzija
393f93af38
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      core/dbobjectsearch.class.php

+ 2 - 1
core/dbobjectsearch.class.php

@@ -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