From: Michael Vogel Date: Thu, 26 Jul 2012 05:38:51 +0000 (+0200) Subject: Moving the index creation commands into a readme file due to the fact that creating... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dc416e58871ff817aca6b51dde176c7eae80ddaa;p=friendica.git Moving the index creation commands into a readme file due to the fact that creating of these indexes is really slow. --- diff --git a/mods/readme.txt b/mods/readme.txt new file mode 100644 index 0000000000..9e79f843fe --- /dev/null +++ b/mods/readme.txt @@ -0,0 +1,5 @@ +Site speed can be improved when the following indexes are set. They cannot be set through the update script because on large sites they will block the site for several minutes. + +CREATE INDEX `uid_commented` ON `item` (`uid`, `commented`); +CREATE INDEX `uid_created` ON `item` (`uid`, `created`); +CREATE INDEX `uid_unseen` ON `item` (`uid`, `unseen`); diff --git a/update.php b/update.php index 2d80ee369d..f98fb3ae71 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@