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

Add applyOps option to suppress the results array

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 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.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: