Browse Source

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 years ago
parent
commit
e912749e9b
1 changed files with 6 additions and 0 deletions
  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');
 		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
 	 * Construct a brand new (but configured) stop watch
 	 */	 	
 	 */