-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
Replication
In exploring mongomirror performance, we're looking into why we limit applyOps batches to 1000 entries and whether we can increase that (up to the 16MB document size limit) when applying many small operations.
One consideration is that the response includes an array of results. We believe the 1000 op limit may have been chosen historically to avoid having the response in the case of error exceed 16 MB, possibly relating to the size of the 'results' array.
However, mongomirror never looks at the 'results' array, only the 'ok' field. Could we consider adding (and backporting) an option for applyOps to suppress the 'results' field? I think that would allow packing many more small ops into a single applyOps command, which should improve throughput.