Skip to content

playerAppearanceモデルのindex見直し #228

Description

@dai0413

index名確認

db.playerappearances.getIndexes()

削除

db.playerappearances.dropIndex(
  "match_1_team_1_player_name_1"
)

新規作成

db.playerappearances.createIndex(
  { match: 1, team: 1, player_name: 1, number: 1 },
  {
    unique: true,
    partialFilterExpression: {
      player_name: { $type: "string" },
    },
  }
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions