Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-4379

Atomic findOrCreate

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      Similar to findAndModify with upsert, but does not modify the existing record if found.
      Alternately, if findAndModify/upsert could take a separate dictionary of values used when creating new records versus for updating existing records, that could work too.

      Useful for atomically creating a record only if no records match some conditions without changing existing records.

            Assignee:
            Unassigned Unassigned
            Reporter:
            tinystatemachine David Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: