Ido\StatusQuery: make sure performance killers...

...can no longer be reached. Column-ignorant uses still stumbled over
this. Left the code there as we should take a decision on how to approach
this.
This commit is contained in:
Thomas Gelf 2014-06-06 07:10:52 +00:00
parent 4f3596fcaf
commit e1421c0d7e
1 changed files with 9 additions and 3 deletions

View File

@ -293,13 +293,16 @@ class StatusQuery extends IdoQuery
END'
),
'serviceproblemsummary' => array(
'host_unhandled_service_count' => 'sps.unhandled_service_count'
// 'host_unhandled_service_count' => 'sps.unhandled_service_count'
'host_unhandled_service_count' => '(NULL)'
),
'lasthostcomment' => array(
'host_last_comment' => 'hlc.comment_id'
// 'host_last_comment' => 'hlc.comment_id'
'host_last_comment' => '(NULL)'
),
'lastservicecomment' => array(
'service_last_comment' => 'slc.comment_id'
// 'service_last_comment' => 'slc.comment_id'
'service_last_comment' => '(NULL)'
)
);
@ -322,6 +325,9 @@ class StatusQuery extends IdoQuery
$this->joinedVirtualTables = array(
'hosts' => true,
'hoststatus' => true,
'lasthostcomment' => true,
'lastservicecomment' => true,
'serviceproblemsummary' => true,
);
}