Skip to content

Commit

Permalink
tweak partition size
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Chan committed May 29, 2018
1 parent d5bfd32 commit 671ffc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions coc-clan-war/src/main/resources/db/changelog/changelog-1.sql
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ ROW_FORMAT = COMPRESSED ;
--changeset cj:3
--preconditions onFail:MARK_RAN onError:HALT
--precondition-sql-check expectedResult:0 SELECT count(*) FROM information_schema.partitions WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME = 't_war_log' AND PARTITION_NAME IS NOT NULL
ALTER TABLE t_war_log PARTITION BY KEY ( f_id ) PARTITIONS 32;
ALTER TABLE t_war_log PARTITION BY KEY ( f_id ) PARTITIONS 31;

--changeset cj:4
--preconditions onFail:MARK_RAN onError:HALT
--precondition-sql-check expectedResult:0 SELECT count(*) FROM information_schema.partitions WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME = 't_war_team' AND PARTITION_NAME IS NOT NULL
ALTER TABLE t_war_team PARTITION BY KEY ( f_id ) PARTITIONS 32;
ALTER TABLE t_war_team PARTITION BY KEY ( f_id ) PARTITIONS 31;
4 changes: 2 additions & 2 deletions coc-discovery/src/main/resources/db/changelog/changelog-2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ CHANGE COLUMN `f_last_hit_time` `f_last_hit_time` DATETIME NOT NULL DEFAULT '197
--changeset cj:4
--preconditions onFail:MARK_RAN onError:HALT
--precondition-sql-check expectedResult:0 SELECT count(*) FROM information_schema.partitions WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME = 't_clan_tracking' AND PARTITION_NAME IS NOT NULL
ALTER TABLE t_clan_tracking PARTITION BY KEY ( f_clan_tag ) PARTITIONS 16;
ALTER TABLE t_clan_tracking PARTITION BY KEY ( f_clan_tag ) PARTITIONS 15;

--changeset cj:5
--preconditions onFail:MARK_RAN onError:HALT
--precondition-sql-check expectedResult:0 SELECT count(*) FROM information_schema.partitions WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME = 't_player_tracking' AND PARTITION_NAME IS NOT NULL
ALTER TABLE t_player_tracking PARTITION BY KEY ( f_player_tag ) PARTITIONS 16;
ALTER TABLE t_player_tracking PARTITION BY KEY ( f_player_tag ) PARTITIONS 15;

0 comments on commit 671ffc0

Please sign in to comment.