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

Allow bulkWrite to accept array of documents in an op

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Replication

      During perf testing for bulkWrite we discovered that when we only allow a single document for an insert op we spend a large amount of time in IDL parsing since we need to parse 1000x BulkWriteInsertOp instead of allowing one BulkWriteInsertOp with 1000x documents. We saw significant performance speedups (+13%) when we use this form of parsing so we want to switch to using it permanently

      This is an example commit of a prototype of this functionality. It works for the normal insert codepath but is not cleaned up and has not been tested with retryable writes, timeseries, fle, mongos, etc

      This change should be mostly surgical, but there is one check we do that will be difficult with this new format and we will need to revisit.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            sean.zimmerman@mongodb.com Sean Zimmerman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: