Atomic findOrCreate

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            David Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: