Optimization of DisplayBlock::FromObjectSet, load only the needed column!

SVN:trunk[3576]
This commit is contained in:
Denis Flaven
2015-05-06 17:13:30 +00:00
parent 3595434a05
commit 3e6896b8e6

View File

@@ -73,6 +73,7 @@ class DisplayBlock
{
$oDummyFilter = new DBObjectSearch($oSet->GetClass());
$aKeys = array();
$oSet->OptimizeColumnLoad(array('id')); // No need to load all the columns just to get the id
while($oObject = $oSet->Fetch())
{
$aKeys[] = $oObject->GetKey();