Did measurements, leads to new index suggestions
This commit is contained in:
parent
cc4cf42d0e
commit
258d7dbafb
|
@ -18,8 +18,15 @@ use Icinga\Data\Db\Connection;
|
|||
*
|
||||
* Other possible (history-related) indexes, still subject to tests:
|
||||
* CREATE INDEX web2_index ON icinga_statehistory (object_id, state_time DESC);
|
||||
* CREATE INDEX web2_index ON icinga_notifications (object_id, instance_id, start_time DESC);
|
||||
* CREATE INDEX web2_index ON icinga_downtimehistory (object_id, actual_start_time, actual_end_time);
|
||||
* CREATE INDEX web2_time ON icinga_statehistory (state_time DESC);
|
||||
* CREATE INDEX web2_index ON icinga_notifications (object_id, start_time DESC);
|
||||
* CREATE INDEX web2_start ON icinga_downtimehistory (actual_start_time);
|
||||
* CREATE INDEX web2_end ON icinga_downtimehistory (actual_end_time);
|
||||
* CREATE INDEX web2_index ON icinga_commenthistory (object_id, comment_time);
|
||||
* CREATE INDEX web2_object ON icinga_commenthistory (object_id);
|
||||
* CREATE INDEX web2_time ON icinga_commenthistory (comment_time DESC);
|
||||
*
|
||||
* CREATE INDEX web2_notification_contact ON icinga_contactnotifications (contact_object_id, notification_id);
|
||||
*
|
||||
* These should be unique:
|
||||
* CREATE INDEX web2_index ON icinga_host_contacts (host_id, contact_object_id);
|
||||
|
|
Loading…
Reference in New Issue