[SERVER-77785] Repack measurements back into the modified bucket through WriteBatch Created: 05/Jun/23  Updated: 10/Aug/23  Resolved: 10/Aug/23

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

Type: Task Priority: Major - P3
Reporter: Yuhong Zhang Assignee: Yuhong Zhang
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Storage Execution
Sprint: Execution NAMR Team 2023-07-24, Execution NAMR Team 2023-08-07, Execution NAMR Team 2023-08-21
Participants:

 Description   

Refactor to reuse existing bucket catalog code.



 Comments   
Comment by Yuhong Zhang [ 10/Aug/23 ]

I looked more into what the new code was trying to achieve and I don't think we can really substantially take advantage of existing bucket catalog code. We will need to compute MinMax of the unmatched measurements which is done while traversing through the measurements to build the BSON sub objects. WriteBatch itself doesn't compute MinMax but gets them from a Bucket Object. Only using WriteBatch as a holder of the measurements seems not really a simplification, plus we'll need to handle a lot of unnecessary information like those in BucketHandle.

When we implemented the current version at the beginning of the project, we had a vision to decouple this function from the current bucket catalog code: given some measurements that we know can fit into a bucket and a known bucket id, create a bucket document we can use for either insert/update. I would suggest closing this ticket as won't do.

cc dan.larkin-york@mongodb.com 

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