Added new index to Events table.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1142 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2004-10-13 09:36:10 +00:00
parent 02ff3a54b5
commit 6c9d40767c
2 changed files with 17 additions and 1 deletions

15
db/zmalter-1.19.5.sql Normal file
View File

@ -0,0 +1,15 @@
--
-- This updates a 1.19.5 database to 1.19.6
--
-- Add a new index to the Events table
--
alter table Events add index (Frames);
--
-- These are optional, but we might as well do it now
--
optimize table Frames;
optimize table Events;
optimize table Filters;
optimize table Zones;
optimize table Monitors;
optimize table Stats;

View File

@ -54,7 +54,8 @@ CREATE TABLE Events (
UNIQUE KEY UC_Id (Id),
KEY Id (Id,MonitorId),
KEY MonitorId (MonitorId),
KEY StartTime (StartTime)
KEY StartTime (StartTime),
KEY Frames (Frames)
) TYPE=MyISAM;
--