mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-02 10:34:31 +00:00
refactor: counting users on homepage uses indexes
... and some intelligent queries for a change :P
This commit is contained in:
@@ -1548,7 +1548,10 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%users` (
|
||||
KEY `invited` (`invited`),
|
||||
KEY `lastupdate` (`lastupdate`),
|
||||
KEY `alliance` (`alliance`),
|
||||
KEY `username` (`username`(25)) USING BTREE
|
||||
KEY `username` (`username`(25)) USING BTREE,
|
||||
KEY `tribe` (`tribe`),
|
||||
KEY `timestamp` (`timestamp`),
|
||||
KEY `timestamp-tribe` (`timestamp`,`tribe`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
|
||||
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user