Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4373

Allow updating documents in sharded collections

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • 1.24.1
    • Affects Version/s: 1.21.2
    • Component/s: None
    • Labels:
      None
    • Not Needed
    • Hide

      Update on Sharded Cluster (Suggestion)
      completed (13 users)

      Show
      Update on Sharded Cluster (Suggestion) completed (13 users)

      Updating a document in a collection sharded on the `bucket` field:

      In `compass-crud` this is because our filter query only supplies `_id` and not the shard key: 
      https://github.com/mongodb-js/compass-crud/blob/master/src/stores/crud-store.js#L343
      I don't think the data service currently gives us the collection's shard key, but we should be able to query it from the config -> collections collection (key object in each document). This ticket involves identifying when we're in a sharded collection/environment, and supplying the shard key in related queries.

      Related help ticket: https://jira.mongodb.org/browse/HELP-17211

            Assignee:
            Unassigned Unassigned
            Reporter:
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            8 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: