[SERVER-67965] Implement $_internalGlobalIndexTransform agg stage Created: 11/Jul/22  Updated: 05/Dec/22  Resolved: 11/Aug/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Randolph Tan Assignee: [DO NOT USE] Backlog - Sharding NYC
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Sharding NYC
Participants:

 Description   

The agg stage would have the format:

{
  $_internalGlobalIndexTransform: {
    indexCollectionUUID: <uuid of global index from index catalog>
    recipientShardId: <>,
  }
}

The agg stage performs 2 tasks:
1. Filters out documents that do not belong to recipientShardId.
2. Transforms the input document into the following format:

{
  _id: <object containing fields with index key value pairs>,
  documentKey: <union of _id and shard key values of source collection, where _id is first element>
}

The _id of the output document is the index value representation based on the index key spec specified by indexCollectionUUID.



 Comments   
Comment by Randolph Tan [ 11/Aug/22 ]

Superceded by SERVER-68685 and SERVER-68686

Generated at Thu Feb 08 06:09:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.