[SERVER-68252] BSONColumnBuilder improvements Created: 25/Jul/22  Updated: 29/Oct/23  Resolved: 06/Oct/22

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

Type: Task Priority: Major - P3
Reporter: Henrik Edin Assignee: Henrik Edin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-10-17
Participants:

 Description   

To improve the flexibility of building BSONColumn binaries we should consider implementing the following:

  • Allow appending of BSONObj without needing to wrap in another BSONObj to be able to get a BSONElement. With BSONObj we already know the type (Object or Array) and the user should not have to copy everything just to put a type byte before in the memory layout.
  • Appending an EOO BSONElement should be treated as index skip. This is the representation BSONColumn (the decompressor) uses.
  • Support extracting a BSONColumn binary and allow continued appending to the BSONColumnBuilder. Systems that currently need to write out "interim" state need to start over building the BSONColumn from the beginning to add new data.


 Comments   
Comment by Githook User [ 06/Oct/22 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-68252 BSONColumnBuilder improvements

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