소스 검색

Performance optimization: do not load all the columns when it is not needed.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4317 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 9 년 전
부모
커밋
0f047bb028
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      core/ormstopwatch.class.inc.php

+ 1 - 0
core/ormstopwatch.class.inc.php

@@ -494,6 +494,7 @@ class CheckStopWatchThresholds implements iBackgroundProcess
 						$sExpression = "SELECT $sClass WHERE {$sAttCode}_laststart AND {$sAttCode}_{$iThreshold}_triggered = 0 AND {$sAttCode}_{$iThreshold}_deadline < '$sNow'";
 						$oFilter = DBObjectSearch::FromOQL($sExpression);
 						$oSet = new DBObjectSet($oFilter);
+						$oSet->OptimizeColumnLoad(array($sAttCode));
 						while ((time() < $iTimeLimit) && ($oObj = $oSet->Fetch()))
 						{
 							$sClass = get_class($oObj);