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

Update doc_diff::applyDiff to determine when it can stop continually checking if the data mightBeIndexed

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2021-04-19, Execution Team 2021-05-03

      in timeseries collections, we often append lots of elements to array fields in the same diff when updating a bucket. Each time, we check if we check if the field mightBeIndexed. In such cases, we only really need to check once, and we can save the negative result in the same way we currently save the positive result. This will likely require changing the state from a bool to an enum with three entries (yes, no, undetermined).

            Assignee:
            gregory.noma@mongodb.com Gregory Noma
            Reporter:
            dan.larkin-york@mongodb.com Dan Larkin-York
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: