Code

Added table index, to speed up sql queries.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Nov 2007 10:47:34 +0000 (10:47 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Nov 2007 10:47:34 +0000 (10:47 +0000)
A query over ~500000 entries, will now take less than a second.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7906 594d385d-05f5-0310-b6e9-bd551577e9d8

contrib/mysql/logging/logging.sql

index d589e2306d26114bb36f080f7f1fa5b88b117f82..856758e9f2b4b2c859e76f843b8f32fec84fdf40 100644 (file)
@@ -11,4 +11,7 @@ CREATE TABLE `gosa_log` (
   `changes` blob NOT NULL,
   `result` varchar(255) NOT NULL,
   PRIMARY KEY  (`id`)
+  KEY `action` (`action`),
+  KEY `timestamp` (`timestamp`)
 ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+