From: hickert Date: Tue, 27 Nov 2007 10:47:34 +0000 (+0000) Subject: Added table index, to speed up sql queries. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9ff39e3ee77231d67d08cb890a609181a1642ca3;p=gosa.git Added table index, to speed up sql queries. 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 --- diff --git a/contrib/mysql/logging/logging.sql b/contrib/mysql/logging/logging.sql index d589e2306..856758e9f 100644 --- a/contrib/mysql/logging/logging.sql +++ b/contrib/mysql/logging/logging.sql @@ -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 ; +