mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-22 05:14:25 +02:00
monitoring: Use grouping instead of distinct in the host status query
refs #9009
This commit is contained in:
parent
c993ee63b7
commit
c08a98f6ac
@ -233,7 +233,7 @@ SQL;
|
|||||||
'hgo.objecttype_id = ?',
|
'hgo.objecttype_id = ?',
|
||||||
3
|
3
|
||||||
);
|
);
|
||||||
$this->distinct();
|
$this->group('ho.name1');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -322,8 +322,7 @@ SQL;
|
|||||||
'sgo.objecttype_id = ?',
|
'sgo.objecttype_id = ?',
|
||||||
4
|
4
|
||||||
);
|
);
|
||||||
$this->distinct();
|
$this->group('ho.name1');
|
||||||
$this->setUseSubqueryCount(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -348,8 +347,7 @@ SQL;
|
|||||||
'so.objecttype_id = ?',
|
'so.objecttype_id = ?',
|
||||||
2
|
2
|
||||||
);
|
);
|
||||||
$this->distinct();
|
$this->group('ho.name1');
|
||||||
$this->setUseSubqueryCount(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user