[SERVER-60119] (Unsharded) support updates to fields in a document's cluster key Created: 21/Sep/21  Updated: 05/Dec/22  Resolved: 05/Dec/22

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

Type: Task Priority: Major - P3
Reporter: Haley Connelly Assignee: Backlog - Storage Execution Team
Resolution: Won't Do Votes: 0
Labels: PM-2311-M3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Assigned Teams:
Storage Execution
Participants:
Story Points: 2

 Description   

For unsharded clustered collections, this will include:

Record Store

  • removing the existing record
  • inserting the updated record with the new RecordId (which will be generated by it's cluster key)

Index Catalog

  • Record updates through the IndexCatalog class currently assume the RecordId of the pre and post image remains constant.
  • Callers should provide the IndexCatalog's updateRecord with the old and new RecordId.
  • The old RecordId will be used for removing the existing secondary index, the new RecordId for inserting the new one that matches the newly modified cluster key

This ticket can be split up into 2 commits
(1) clustered collections with no secondary indexes
(2) clustered collections with secondary indexes*


Generated at Thu Feb 08 05:49:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.