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

Reduce the overhead from ReshardingDonorWriteRouter on the write codepath

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Sharding NYC
    • 2

      Still TBD what can actually be done here and is realistically pending a profile of SERVER-58960. Some thoughts if extracting the shard key value under the new shard key pattern is expensive would be:

      • Extract the shard key value as a KeyString instead of a BSONObj so it doesn't need to be converted afterwards to query the ChunkManager for the new owning ShardId.
      • Extract the current shard key value and new shard key value in a single pass over the BSONObj.
      • (Specific to updates) Cache the current shard key value and new shard key value from what was extracted already in UpdateStage to avoid doing it a second time in OpObserverImpl.

            Assignee:
            backlog-server-sharding-nyc [DO NOT USE] Backlog - Sharding NYC
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: