diff --git a/mods/readme.txt b/mods/readme.txt new file mode 100644 index 00000000..9e79f843 --- /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 2d80ee36..f98fb3ae 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@