drop archived and Frames indexes from Events, as they are useless. Add a StorageId Index
This commit is contained in:
parent
37a40a30d3
commit
5c75df1a40
|
@ -210,11 +210,10 @@ CREATE TABLE `Events` (
|
||||||
`Orientation` enum('0','90','180','270','hori','vert') NOT NULL default '0',
|
`Orientation` enum('0','90','180','270','hori','vert') NOT NULL default '0',
|
||||||
`DiskSpace` bigint unsigned default NULL,
|
`DiskSpace` bigint unsigned default NULL,
|
||||||
PRIMARY KEY (`Id`),
|
PRIMARY KEY (`Id`),
|
||||||
KEY `MonitorId` (`MonitorId`),
|
KEY `Events_MonitorId_idx` (`MonitorId`),
|
||||||
KEY `StartTime` (`StartTime`),
|
KEY `Events_StorageId_idx` (`StorageId`),
|
||||||
KEY `Frames` (`Frames`),
|
KEY `Events_StartTime_idx` (`StartTime`),
|
||||||
KEY `Archived` (`Archived`),
|
KEY `Events_EndTime_DiskSpace` (`EndTime`,`DiskSpace`)
|
||||||
KEY `EndTime_DiskSpace` (`EndTime`,`DiskSpace`)
|
|
||||||
) ENGINE=@ZM_MYSQL_ENGINE@;
|
) ENGINE=@ZM_MYSQL_ENGINE@;
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
Loading…
Reference in New Issue