monitoring: Use grouping instead of distinct in the host status query

refs #9009
This commit is contained in:
Eric Lippmann 2015-06-05 11:48:33 +02:00
parent c993ee63b7
commit c08a98f6ac
1 changed files with 3 additions and 5 deletions

View File

@ -233,7 +233,7 @@ SQL;
'hgo.objecttype_id = ?',
3
);
$this->distinct();
$this->group('ho.name1');
}
/**
@ -322,8 +322,7 @@ SQL;
'sgo.objecttype_id = ?',
4
);
$this->distinct();
$this->setUseSubqueryCount(true);
$this->group('ho.name1');
}
/**
@ -348,8 +347,7 @@ SQL;
'so.objecttype_id = ?',
2
);
$this->distinct();
$this->setUseSubqueryCount(true);
$this->group('ho.name1');
}
/**