Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4391

Implement find_or_create atomically

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • None

      Hi,

      I had some concurrency issue with the find_or_create method. There is a reason this operation is not atomic ? I think it will possible to use upsert to do that atomically.

      Bests regards,

      Sébastien

            Assignee:
            Unassigned Unassigned
            Reporter:
            spuyet@gmail.com Sébastien Puyet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: