Added key on comments table for better performance.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 4 Dec 2009 23:31:13 +0000 (23:31 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 4 Dec 2009 23:31:13 +0000 (23:31 +0000)
sql/en_US-demo.sql
sql/en_US-new.sql

index eca1048f1fc865e5f78a54ce7134435a616d7d4c..5fcaa36689b4642a20e6ea2f6f09d4f229ca1db4 100644 (file)
@@ -345,7 +345,8 @@ CREATE TABLE `0_comments` (
   `type` int(11) NOT NULL default '0',
   `id` int(11) NOT NULL default '0',
   `date_` date default '0000-00-00',
-  `memo_` tinytext
+  `memo_` tinytext,
+  KEY `type_and_id` (`type`, `id`)
 ) TYPE=InnoDB  ;
 
 
index d62c3203ee6f81407e3cec65ad1f0cb0c599d005..1be4f088674e419694924e984b260876adc85b04 100644 (file)
@@ -328,7 +328,8 @@ CREATE TABLE `0_comments` (
   `type` int(11) NOT NULL default '0',
   `id` int(11) NOT NULL default '0',
   `date_` date default '0000-00-00',
-  `memo_` tinytext
+  `memo_` tinytext,
+  KEY `type_and_id` (`type`, `id`)
 ) TYPE=InnoDB  ;