Performance optimization
authorMarcel Werk <burntime@woltlab.com>
Tue, 10 Dec 2013 12:33:53 +0000 (13:33 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 10 Dec 2013 12:33:53 +0000 (13:33 +0100)
com.woltlab.wcf/package.xml
com.woltlab.wcf/update.sql [new file with mode: 0644]
wcfsetup/setup/db/install.sql

index 1877fe99fb9b7a0c8052eb03437585336d610431..36d6b38c5d629a06fd11f1aa92dd1dbe29f96980 100644 (file)
@@ -47,7 +47,7 @@
                <instruction type="file" run="standalone">files_update.tar</instruction>
                <instruction type="template">templates_update.tar</instruction>
                <instruction type="script">acp/update_2.0.0.php</instruction>
-               
                <instruction type="language">language/*.xml</instruction>
+               <instruction type="sql" run="standalone">update.sql</instruction>
        </instructions>
 </package>
diff --git a/com.woltlab.wcf/update.sql b/com.woltlab.wcf/update.sql
new file mode 100644 (file)
index 0000000..c75e17a
--- /dev/null
@@ -0,0 +1 @@
+ALTER TABLE wcf1_search_index ADD KEY (objectTypeID);
\ No newline at end of file
index ef7dd4260f1b1f600ab25b52287ac12f389151e7..6d3690b63f68f538c08bb2fd1de6928306dfe29a 100644 (file)
@@ -781,7 +781,8 @@ CREATE TABLE wcf1_search_index (
        UNIQUE KEY (objectTypeID, objectID, languageID),
        FULLTEXT INDEX fulltextIndex (subject, message, metaData),
        FULLTEXT INDEX fulltextIndexSubjectOnly (subject),
-       KEY (userID, objectTypeID, time)
+       KEY (userID, objectTypeID, time),
+       KEY (objectTypeID)
 );
 
 DROP TABLE IF EXISTS wcf1_search_keyword;