-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add players and servers db indexes (#960)
This will close MIS-207
- Loading branch information
1 parent
746198b
commit 53dc398
Showing
4 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
2 changes: 2 additions & 0 deletions
2
svc/pkg/cluster/db/cluster/migrations/20240627160310_servers_index.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- For cluster-datacenter-topology-get | ||
CREATE INDEX ON servers (cloud_destroy_ts, taint_ts, nomad_node_id) STORING (datacenter_id); |
Empty file.
5 changes: 5 additions & 0 deletions
5
svc/pkg/mm/db/state/migrations/20240627154749_players_index.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- For mm-lobby-cleanup | ||
CREATE INDEX ON players (lobby_id, remove_ts); | ||
|
||
-- For mm-lobby-runtime-aggregate | ||
CREATE INDEX ON lobbies (create_ts) STORING (namespace_id, region_id, stop_ts); |