Skip to content

Commit

Permalink
Make some indexes unique
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele committed Jun 28, 2020
1 parent e9b81e4 commit 96b4033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db-modifications.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
If you are running a CSMM instance with many servers or have high data throughput these commands can help you out. */

--- Indexes
ALTER TABLE sdtdconfig ADD INDEX IDX_sdtdconfig_server (`server` ASC);
ALTER TABLE sdtdconfig ADD UNIQUE INDEX IDX_sdtdconfig_server (`server` ASC);
ALTER TABLE historicalinfo ADD INDEX IDX_historicalinfo_createdAt (`createdAt` ASC);
ALTER TABLE player ADD INDEX IDX_player_steamId_server (`steamId` ASC, `server` ASC);
ALTER TABLE player ADD UNIQUE INDEX IDX_player_steamId_server (`steamId` ASC, `server` ASC);
ALTER TABLE analytics ADD INDEX IDX_analytics_createdAt_server (`createdAt` ASC, `server` ASC);
ALTER TABLE trackinginfo ADD INDEX createdAt (createdAt ASC);
ALTER TABLE trackinginfo ADD INDEX server (server ASC);
Expand Down

0 comments on commit 96b4033

Please sign in to comment.