-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Execution Team 2021-04-19, Execution Team 2021-05-03
The current algorithm iterates over each field in the subdocument and copies it individually when adding a new field. In the timeseries case, where we may have hundreds of fields in each "column", this can be pretty bad quadratic behavior. The goal of this task is not to remove the quadratic behavior, but rather to minimize the coefficient for it by short-cutting: when we know we are just appending a field, we can take advantage of this to do a memcpy on the underlying BSON binary data, and just adjust the length for the subdocument to account for the new element.
- is depended on by
-
SERVER-56170 Investigate why some oplog entries generated during tenant migration for timeseries bucket collections require stricter than normal idempotency guarantees
- Closed
- split from
-
SERVER-55350 Investigate single-threaded timeseries insert performance
- Closed