add indexes for Monitors(ServerId) and Servers(Name)

This commit is contained in:
Isaac Connor 2016-10-20 13:19:41 -04:00
parent 4fc85fd89c
commit ea27e07276
1 changed files with 5 additions and 0 deletions

View File

@ -401,6 +401,8 @@ CREATE TABLE `Monitors` (
PRIMARY KEY (`Id`)
) ENGINE=@ZM_MYSQL_ENGINE@;
CREATE INDEX `Monitors_ServerId_idx` ON `Monitors` (`ServerId`);
--
-- Table structure for table `States`
-- PP - Added IsActive to track custom run states
@ -430,6 +432,9 @@ CREATE TABLE `Servers` (
`State_Id` int(10) unsigned,
PRIMARY KEY (`Id`)
) ENGINE=@ZM_MYSQL_ENGINE@;
CREATE INDEX `Servers_Name_idx` ON `Servers` (`Name`);
--
-- Table structure for table `Stats`
--