From: Marcel Werk Date: Tue, 10 Dec 2013 12:33:53 +0000 (+0100) Subject: Performance optimization X-Git-Tag: 2.0.0~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=266fcb42349546d7b49d9d4eaa92515b02b1effc;p=GitHub%2FWoltLab%2FWCF.git Performance optimization --- diff --git a/com.woltlab.wcf/package.xml b/com.woltlab.wcf/package.xml index 1877fe99fb..36d6b38c5d 100644 --- a/com.woltlab.wcf/package.xml +++ b/com.woltlab.wcf/package.xml @@ -47,7 +47,7 @@ files_update.tar templates_update.tar acp/update_2.0.0.php - language/*.xml + update.sql diff --git a/com.woltlab.wcf/update.sql b/com.woltlab.wcf/update.sql new file mode 100644 index 0000000000..c75e17a0e2 --- /dev/null +++ b/com.woltlab.wcf/update.sql @@ -0,0 +1 @@ +ALTER TABLE wcf1_search_index ADD KEY (objectTypeID); \ No newline at end of file diff --git a/wcfsetup/setup/db/install.sql b/wcfsetup/setup/db/install.sql index ef7dd4260f..6d3690b63f 100644 --- a/wcfsetup/setup/db/install.sql +++ b/wcfsetup/setup/db/install.sql @@ -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;