mirror of https://github.com/Icinga/icinga2.git
DB IDO: Add missing indexes for icinga_endpoints* and icinga_zones* tables
fixes #10066
This commit is contained in:
parent
428850a6b3
commit
7f56a04dd5
|
@ -1649,6 +1649,19 @@ CREATE INDEX cvs_session_del_idx ON icinga_customvariablestatus (session_token);
|
|||
CREATE INDEX idx_comments_object_id on icinga_comments(object_id);
|
||||
CREATE INDEX idx_scheduleddowntime_object_id on icinga_scheduleddowntime(object_id);
|
||||
|
||||
-- #10066
|
||||
CREATE INDEX idx_endpoints_object_id on icinga_endpoints(endpoint_object_id);
|
||||
CREATE INDEX idx_endpointstatus_object_id on icinga_endpointstatus(endpoint_object_id);
|
||||
|
||||
CREATE INDEX idx_endpoints_zone_object_id on icinga_endpoints(zone_object_id);
|
||||
CREATE INDEX idx_endpointstatus_zone_object_id on icinga_endpointstatus(zone_object_id);
|
||||
|
||||
CREATE INDEX idx_zones_object_id on icinga_zones(zone_object_id);
|
||||
CREATE INDEX idx_zonestatus_object_id on icinga_zonestatus(zone_object_id);
|
||||
|
||||
CREATE INDEX idx_zones_parent_object_id on icinga_zones(parent_zone_object_id);
|
||||
CREATE INDEX idx_zonestatus_parent_object_id on icinga_zonestatus(parent_zone_object_id);
|
||||
|
||||
-- -----------------------------------------
|
||||
-- set dbversion
|
||||
-- -----------------------------------------
|
||||
|
|
|
@ -28,6 +28,23 @@ CREATE INDEX idx_scheduleddowntime_object_id on icinga_scheduleddowntime(object_
|
|||
ALTER TABLE icinga_hoststatus MODIFY COLUMN current_notification_number int unsigned default 0;
|
||||
ALTER TABLE icinga_servicestatus MODIFY COLUMN current_notification_number int unsigned default 0;
|
||||
|
||||
|
||||
-- -----------------------------------------
|
||||
-- #10066
|
||||
-- -----------------------------------------
|
||||
|
||||
CREATE INDEX idx_endpoints_object_id on icinga_endpoints(endpoint_object_id);
|
||||
CREATE INDEX idx_endpointstatus_object_id on icinga_endpointstatus(endpoint_object_id);
|
||||
|
||||
CREATE INDEX idx_endpoints_zone_object_id on icinga_endpoints(zone_object_id);
|
||||
CREATE INDEX idx_endpointstatus_zone_object_id on icinga_endpointstatus(zone_object_id);
|
||||
|
||||
CREATE INDEX idx_zones_object_id on icinga_zones(zone_object_id);
|
||||
CREATE INDEX idx_zonestatus_object_id on icinga_zonestatus(zone_object_id);
|
||||
|
||||
CREATE INDEX idx_zones_parent_object_id on icinga_zones(parent_zone_object_id);
|
||||
CREATE INDEX idx_zonestatus_parent_object_id on icinga_zonestatus(parent_zone_object_id);
|
||||
|
||||
-- -----------------------------------------
|
||||
-- set dbversion
|
||||
-- -----------------------------------------
|
||||
|
|
|
@ -1678,6 +1678,19 @@ CREATE INDEX cvs_session_del_idx ON icinga_customvariablestatus (session_token);
|
|||
CREATE INDEX idx_comments_object_id on icinga_comments(object_id);
|
||||
CREATE INDEX idx_scheduleddowntime_object_id on icinga_scheduleddowntime(object_id);
|
||||
|
||||
-- #10066
|
||||
CREATE INDEX idx_endpoints_object_id on icinga_endpoints(endpoint_object_id);
|
||||
CREATE INDEX idx_endpointstatus_object_id on icinga_endpointstatus(endpoint_object_id);
|
||||
|
||||
CREATE INDEX idx_endpoints_zone_object_id on icinga_endpoints(zone_object_id);
|
||||
CREATE INDEX idx_endpointstatus_zone_object_id on icinga_endpointstatus(zone_object_id);
|
||||
|
||||
CREATE INDEX idx_zones_object_id on icinga_zones(zone_object_id);
|
||||
CREATE INDEX idx_zonestatus_object_id on icinga_zonestatus(zone_object_id);
|
||||
|
||||
CREATE INDEX idx_zones_parent_object_id on icinga_zones(parent_zone_object_id);
|
||||
CREATE INDEX idx_zonestatus_parent_object_id on icinga_zonestatus(parent_zone_object_id);
|
||||
|
||||
-- -----------------------------------------
|
||||
-- set dbversion
|
||||
-- -----------------------------------------
|
||||
|
|
|
@ -22,6 +22,22 @@ ALTER TABLE icinga_statehistory ALTER COLUMN check_source TYPE varchar(255);
|
|||
CREATE INDEX idx_comments_object_id on icinga_comments(object_id);
|
||||
CREATE INDEX idx_scheduleddowntime_object_id on icinga_scheduleddowntime(object_id);
|
||||
|
||||
-- -----------------------------------------
|
||||
-- #10066
|
||||
-- -----------------------------------------
|
||||
|
||||
CREATE INDEX idx_endpoints_object_id on icinga_endpoints(endpoint_object_id);
|
||||
CREATE INDEX idx_endpointstatus_object_id on icinga_endpointstatus(endpoint_object_id);
|
||||
|
||||
CREATE INDEX idx_endpoints_zone_object_id on icinga_endpoints(zone_object_id);
|
||||
CREATE INDEX idx_endpointstatus_zone_object_id on icinga_endpointstatus(zone_object_id);
|
||||
|
||||
CREATE INDEX idx_zones_object_id on icinga_zones(zone_object_id);
|
||||
CREATE INDEX idx_zonestatus_object_id on icinga_zonestatus(zone_object_id);
|
||||
|
||||
CREATE INDEX idx_zones_parent_object_id on icinga_zones(parent_zone_object_id);
|
||||
CREATE INDEX idx_zonestatus_parent_object_id on icinga_zonestatus(parent_zone_object_id);
|
||||
|
||||
-- -----------------------------------------
|
||||
-- set dbversion
|
||||
-- -----------------------------------------
|
||||
|
|
Loading…
Reference in New Issue