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

Support compressing arrays in BSONColumn

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • None
    • None
    • None
    • Major Change
    • Execution Team 2022-03-07, Execution Team 2022-03-21, Execution Team 2022-04-04

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: