Преглед изворни кода

Optimization (regression introduced in 2.1.0): huge tables and HTML exports of tickets can take long to execute (require 1 query per fetched row)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3708 a333f486-631f-4898-b8df-5754b55c2be0
romainq пре 9 година
родитељ
комит
e912749e9b
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      core/attributedef.class.inc.php

+ 6 - 0
core/attributedef.class.inc.php

@@ -4136,6 +4136,12 @@ class AttributeStopWatch extends AttributeDefinition
 		return $this->Get('states');
 	}
 
+	public function AlwaysLoadInTables()
+	{
+		// Each and every stop watch is accessed for computing the highlight code (DBObject::GetHighlightCode())
+		return true;
+	}
+
 	/**
 	 * Construct a brand new (but configured) stop watch
 	 */