diff --git a/svc/pkg/cluster/db/cluster/migrations/20240627160310_servers_index.down.sql b/svc/pkg/cluster/db/cluster/migrations/20240627160310_servers_index.down.sql new file mode 100644 index 0000000000..e69de29bb2 diff --git a/svc/pkg/cluster/db/cluster/migrations/20240627160310_servers_index.up.sql b/svc/pkg/cluster/db/cluster/migrations/20240627160310_servers_index.up.sql new file mode 100644 index 0000000000..b5d9d4929f --- /dev/null +++ b/svc/pkg/cluster/db/cluster/migrations/20240627160310_servers_index.up.sql @@ -0,0 +1,2 @@ +-- For cluster-datacenter-topology-get +CREATE INDEX ON servers (cloud_destroy_ts, taint_ts, nomad_node_id) STORING (datacenter_id); \ No newline at end of file diff --git a/svc/pkg/mm/db/state/migrations/20240627154749_players_index.down.sql b/svc/pkg/mm/db/state/migrations/20240627154749_players_index.down.sql new file mode 100644 index 0000000000..e69de29bb2 diff --git a/svc/pkg/mm/db/state/migrations/20240627154749_players_index.up.sql b/svc/pkg/mm/db/state/migrations/20240627154749_players_index.up.sql new file mode 100644 index 0000000000..9027fbf66f --- /dev/null +++ b/svc/pkg/mm/db/state/migrations/20240627154749_players_index.up.sql @@ -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); \ No newline at end of file