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:
parent
02ff3a54b5
commit
6c9d40767c
|
@ -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;
|
|
@ -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;
|
||||
|
||||
--
|
||||
|
|
Loading…
Reference in New Issue