From 5c75df1a40789d73a0e4e9d077090dcf2468428b Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 5 Jan 2018 14:40:03 -0500 Subject: [PATCH] drop archived and Frames indexes from Events, as they are useless. Add a StorageId Index --- db/zm_create.sql.in | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/db/zm_create.sql.in b/db/zm_create.sql.in index f9ac3b6d2..917d3d4c1 100644 --- a/db/zm_create.sql.in +++ b/db/zm_create.sql.in @@ -210,11 +210,10 @@ CREATE TABLE `Events` ( `Orientation` enum('0','90','180','270','hori','vert') NOT NULL default '0', `DiskSpace` bigint unsigned default NULL, PRIMARY KEY (`Id`), - KEY `MonitorId` (`MonitorId`), - KEY `StartTime` (`StartTime`), - KEY `Frames` (`Frames`), - KEY `Archived` (`Archived`), - KEY `EndTime_DiskSpace` (`EndTime`,`DiskSpace`) + KEY `Events_MonitorId_idx` (`MonitorId`), + KEY `Events_StorageId_idx` (`StorageId`), + KEY `Events_StartTime_idx` (`StartTime`), + KEY `Events_EndTime_DiskSpace` (`EndTime`,`DiskSpace`) ) ENGINE=@ZM_MYSQL_ENGINE@; --