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

Use delta format for updating timeseries buckets

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Storage
    • None
    • Fully Compatible
    • Execution Team 2020-12-28

    Description

      Currently we create update operations using $set to perform timeseries inserts into existing buckets. However, because $set inserts new fields into a sorted position for idempotency reasons, this means that the bucket orders elements in order like:

       0, 1, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9
      

      This is a problem for unwinding and will also make it impossible to implement future optimizations to efficiency: eventually, we'd like to be able to blindly append new fields to the end of existing objects without parsing all existing fields.

      Attachments

        Activity

          People

            benety.goh@mongodb.com Benety Goh
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: