Merge/overwrite collections function

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Usability
    • None
    • Query
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      A very useful feature would be the ability to merge collections together, overwriting/updating the records of one collection with those contained in another.

      db.overwriteCollection(destCollection, [srcCollection, ...], options);

      where srcCollection is the collection, or an array of collections, to be merged into/onto destCollection.

      options:

      update: true/false - whether to update (true) or replace (false, default behaviour when not set) any conflicting/existing records based on document id or unique key.
      remove: true/false - whether to remove the srcCollection(s) (true) on completion. false by default.

              Assignee:
              Backlog - Query Team (Inactive)
              Reporter:
              Phillip Oldham
              Votes:
              7 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: