优化公会游戏统计sql

master
chenzhi 5 years ago
parent 381327ae21
commit ccaa9d3a78

@ -1445,3 +1445,10 @@ CREATE TABLE `tab_promote_game_available_balance` (
ALTER TABLE `tab_spend`
ADD INDEX `pay_channel`(`pay_way`, `pay_status`, `game_id`) USING BTREE,
ADD INDEX `pay_channel_type`(`pay_status`, `pay_way`) USING BTREE;
-- 为游戏统计新增spend索引 chenzhi 2020/03/11
ALTER TABLE `tab_spend`
ADD INDEX `game_time`(`game_id`,`pay_time`) USING BTREE;
-- 为公会统计新增spend索引 chenzhi 2020/03/11
ALTER TABLE `tab_spend`
ADD INDEX `promote_time`(`promote_id`,`pay_time`) USING BTREE;
Loading…
Cancel
Save