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

Add BSONColumnBuilder fill constructor for skips

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Execution
    • Execution Team 2024-02-19

      When a user inserts a measurement into a time-series collection that contains a field that does not exist for prior measurements, the compression code needs to create a new BSONColumnBuilder to represent the new data field. If there are already dozens or hundreds of measurements in the bucket, there will need to be dozens or hundreds of skips initialized in the new column.

      This API improves performance by not calling append() each time and checking if RLE is possible. Instead, it will set each RLE block directly and any other state required without calling append().

      Proposed shape of the API:

      BSONColumnBuilder(size_t numPrefixSkips); // fill ctor
      

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            matt.kneiser@mongodb.com Matt Kneiser
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: