refactor: market SQL optimization

This commit is contained in:
Martin Ambrus
2017-10-23 18:09:41 +02:00
parent ffeffd30e9
commit e3ce9427e0
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -958,7 +958,8 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%market` (
`maxtime` int(11) NULL,
`alliance` int(11) NULL,
`merchant` tinyint(2) NULL,
PRIMARY KEY (`id`)
PRIMARY KEY (`id`),
KEY `vref-accept` (`vref`,`accept`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
--
+2 -1
View File
@@ -1,5 +1,6 @@
-- 23.10.2017 -> SQL optimizations
ALTER TABLE `s1_medal` ADD INDEX(`week`);
ALTER TABLE `s1_market` ADD INDEX `vref-accept` (`vref`, `accept`);
-- 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
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 `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