--- /dev/null
+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`);
<?php
-define( 'UPDATE_VERSION' , 1154 );
+define( 'UPDATE_VERSION' , 1153 );
/**
*
return UPDATE_FAILED;
return UPDATE_SUCCESS;
}
-
-function update_1153() {
- $r = q("CREATE INDEX `uid_commented` ON `item` (`uid`, `commented`)");
- if(! $r)
- return UPDATE_FAILED;
- $r = q("CREATE INDEX `uid_created` ON `item` (`uid`, `created`)");
- if(! $r)
- return UPDATE_FAILED;
- $r = q("CREATE INDEX `uid_unseen` ON `item` (`uid`, `unseen`)");
- if(! $r)
- return UPDATE_FAILED;
- return UPDATE_SUCCESS;
-}