You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ALTERTABLE service_state ADD COLUMN host_id binary(20) NOT NULL COMMENT 'host.id' AFTER id;
420
420
UPDATE service_state INNER JOIN service ONservice.id=service_state.service_idSETservice_state.host_id=service.host_idWHEREservice_state.host_id= REPEAT('\0', 20);
421
+
422
+
ALTERTABLE comment
423
+
ADD INDEX idx_comment_author (author) COMMENT 'Comment list filtered/ordered by author',
424
+
ADD INDEX idx_comment_expire_time (expire_time) COMMENT 'Comment list filtered/ordered by expire_time';
425
+
426
+
ALTERTABLE downtime
427
+
ADD INDEX idx_downtime_entry_time (entry_time) COMMENT 'Downtime list filtered/ordered by entry_time',
428
+
ADD INDEX idx_downtime_start_time (start_time) COMMENT 'Downtime list filtered/ordered by start_time',
429
+
ADD INDEX idx_downtime_end_time (end_time) COMMENT 'Downtime list filtered/ordered by end_time',
430
+
ADD INDEX idx_downtime_scheduled_start_time (scheduled_start_time) COMMENT 'Downtime list filtered/ordered by scheduled_start_time',
431
+
ADD INDEX idx_downtime_scheduled_end_time (scheduled_end_time) COMMENT 'Downtime list filtered/ordered by scheduled_end_time',
432
+
ADD INDEX idx_downtime_author (author) COMMENT 'Downtime list filtered/ordered by author',
433
+
ADD INDEX idx_downtime_duration (duration) COMMENT 'Downtime list filtered/ordered by duration';
434
+
435
+
ALTERTABLE service_state
436
+
ADD INDEX idx_service_state_is_problem (is_problem, severity) COMMENT 'Service list filtered by is_problem ordered by severity',
437
+
ADD INDEX idx_service_state_severity (severity) COMMENT 'Service list filtered/ordered by severity',
438
+
ADD INDEX idx_service_state_soft_state (soft_state, last_state_change) COMMENT 'Service list filtered/ordered by soft_state; recently recovered filter',
439
+
ADD INDEX idx_service_state_last_state_change (last_state_change) COMMENT 'Service list filtered/ordered by last_state_change';
440
+
441
+
ALTERTABLE host_state
442
+
ADD INDEX idx_host_state_is_problem (is_problem, severity) COMMENT 'Host list filtered by is_problem ordered by severity',
443
+
ADD INDEX idx_host_state_severity (severity) COMMENT 'Host list filtered/ordered by severity',
444
+
ADD INDEX idx_host_state_soft_state (soft_state, last_state_change) COMMENT 'Host list filtered/ordered by soft_state; recently recovered filter',
445
+
ADD INDEX idx_host_state_last_state_change (last_state_change) COMMENT 'Host list filtered/ordered by last_state_change';
446
+
447
+
ALTERTABLE hostgroup
448
+
ADD INDEX idx_hostroup_name (name) COMMENT 'Host/service/host group list filtered by host group name';
449
+
450
+
ALTERTABLE servicegroup
451
+
ADD INDEX idx_servicegroup_name (name) COMMENT 'Host/service/service group list filtered by service group name';
452
+
453
+
ALTERTABLE notification
454
+
DROPINDEX idx_host_id,
455
+
DROPINDEX idx_service_id,
456
+
ADD INDEX idx_notification_host_id (host_id),
457
+
ADD INDEX idx_notification_service_id (service_id);
458
+
459
+
ALTERTABLE zone
460
+
DROPINDEX idx_parent_id,
461
+
ADD INDEX idx_zone_parent_id (parent_id);
462
+
463
+
ALTERTABLE history
464
+
ADD INDEX idx_history_host_service_id (host_id, service_id, event_time) COMMENT 'Host/service history detail filter';
465
+
466
+
ALTERTABLE notification_history
467
+
DROPINDEX idx_notification_history_event_time,
468
+
ADD INDEX idx_notification_history_send_time (send_time) COMMENT 'Notification list filtered/ordered by send_time';
0 commit comments