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

Support compressing arrays in BSONColumn

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Major Change
    • Execution Team 2022-03-07, Execution Team 2022-03-21, Execution Team 2022-04-04

      Add support for Arrays for the sub-object compression mode in BSONColumn.

      Arrays can mostly be treated as Objects but care need to be taken so we don't merge in when the types are different.

      Because there is existing data using this feature, we cannot use the existing control byte for sub-object mode start. An existing reference object with a sub-array need to not look for interleaved data for the array content.

      Arrays can also exist at the root level and we need a separate control byte for interleave start as an array.

      So:
      Existing 0xF0 control byte need to decode as it currently does
      Add new 0xF1 control byte for array support under objects
      Add new 0xF2 control byte for array support when the root is an array

            Assignee:
            henrik.edin@mongodb.com Henrik Edin
            Reporter:
            henrik.edin@mongodb.com Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: