Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12018

Docs for SERVER-35954: Build uniqueKey from the shard key if not present in user command

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.3
    • manual, Server
    • None

    Description

      Description

      Description:

      The 'uniqueKey' field is optional to the $out stage. If not specified and the collection is sharded, the uniqueKey will become the shard key plus the _id (if the _id is not already part of the shard key).

      Engineering Ticket Description:

      If the aggregation is run in a cluster, the unique key should be the _id and all of the fields of the shard key. Otherwise, the unique key is just the _id.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kay.kim@mongodb.com Kay Kim (Inactive)
              Isabella Siu Isabella Siu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                4 years, 3 weeks, 5 days ago