-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Execution
When using classic update language with operators $set, $pop, $pull to add/remove an element from the array, it writes down the new value of the array to the oplog, and leads to large change stream events.
Instead we could use compact diff so that the resulting change stream event would include:
{ updateDescription: { updatedFields: { 'arrayField.3': 4 }, ... }}
or
{{{ updateDescription: {..., truncatedArrays: [ { field: 'arrayField', newSize: 3 } ] } } }}
- is related to
-
SERVER-72941 Use compact diff format for updates to arrays using classic $addToSet operator
- Closed
- related to
-
SERVER-71331 Do not record full array in oplog for $pop
- Closed