mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-20 10:11:00 +00:00
refactor: market SQL optimization
This commit is contained in:
@@ -958,7 +958,8 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%market` (
|
|||||||
`maxtime` int(11) NULL,
|
`maxtime` int(11) NULL,
|
||||||
`alliance` int(11) NULL,
|
`alliance` int(11) NULL,
|
||||||
`merchant` tinyint(2) NULL,
|
`merchant` tinyint(2) NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `vref-accept` (`vref`,`accept`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|||||||
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
-- 23.10.2017 -> SQL optimizations
|
-- 23.10.2017 -> SQL optimizations
|
||||||
ALTER TABLE `s1_medal` ADD INDEX(`week`);
|
ALTER TABLE `s1_medal` ADD INDEX(`week`);
|
||||||
|
ALTER TABLE `s1_market` ADD INDEX `vref-accept` (`vref`, `accept`);
|
||||||
|
|
||||||
|
|
||||||
-- 22.10.2017 -> SQL optimizations
|
-- 22.10.2017 -> SQL optimizations
|
||||||
@@ -39,7 +40,7 @@ ALTER TABLE `s1_artefacts` ADD INDEX `active-type-lastupdate` (`active`, `type`,
|
|||||||
-- 22.10.2017 -> forum topics table and indexe changes
|
-- 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 `topic` `topic` INT NULL DEFAULT NULL;
|
||||||
ALTER TABLE `s1_forum_post` CHANGE `owner` `owner` INT NULL DEFAULT NULL;
|
ALTER TABLE `s1_forum_post` CHANGE `owner` `owner` INT NULL DEFAULT NULL;
|
||||||
ALTER TABLE `travian`.`s1_forum_post` ADD INDEX `topic-owner` (`topic`, `owner`);
|
ALTER TABLE `s1_forum_post` ADD INDEX `topic-owner` (`topic`, `owner`);
|
||||||
|
|
||||||
|
|
||||||
-- 20.10.2017 -> changing MD5 for bcrypt password hashing algo
|
-- 20.10.2017 -> changing MD5 for bcrypt password hashing algo
|
||||||
|
|||||||
Reference in New Issue
Block a user