Skip to content

Race Condition #2

Description

@bezborodow

When using find_or_create_by there could be a race condition between searching for the record, not finding it, and then creating it, if another process creates the record in the meantime resulting in a duplicate key error.

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