소스 검색

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 년 전
부모
커밋
393f93af38
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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