mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-16 16:21:01 +00:00
refactor: counting users on homepage uses indexes
... and some intelligent queries for a change :P
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
-- 22.10.2017 -> SQL optimizations
|
||||
ALTER TABLE `s1_users` ADD INDEX(`tribe`);
|
||||
ALTER TABLE `s1_users` ADD INDEX `timestamp-tribe` (`timestamp`, `tribe`);
|
||||
|
||||
-- 22.10.2017 -> forum topics table and indexe changes
|
||||
ALTER TABLE `s1_forum_post` CHANGE `topic` `topic` INT NULL DEFAULT NULL;
|
||||
ALTER TABLE `s1_forum_post` CHANGE `owner` `owner` INT NULL DEFAULT NULL;
|
||||
|
||||
Reference in New Issue
Block a user