diff --git a/Data/update.sql b/Data/update.sql index b954bdce6..63465cfb3 100644 --- a/Data/update.sql +++ b/Data/update.sql @@ -422,3 +422,9 @@ CREATE TABLE `tab_notice_read` ( `create_time` int(11) DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8; + +-- 2019-11-19 cxj +-- 添加索引 +ALTER TABLE `tab_user_play_info` ADD INDEX `search`(`promote_id`, `game_id`, `server_id`, `create_time`); +ALTER TABLE `tab_user_login_record` ADD INDEX `search`(`promote_id`, `game_id`, `server_id`, `login_time`); +ALTER TABLE `tab_spend` ADD INDEX `search`(`promote_id`, `game_id`, `server_id`, `pay_way`, `pay_status`, `pay_time`);