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

Investigate and fix slow bulkWrite response cursor population on mongod

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • Repl 2023-10-30

      According to the flame graph, about 4% of the bulkWrite operation's time is spent in populating the cursor response on mongod (when a bulkWrite with 1000 insert operations is run). When I eliminated this method (by returning an empty cursor response instead here) I saw the corresponding improvement.

      Consider ways to optimize this method. And if possible, consider omitting success responses from the response and use a counter n instead, as the existing insert codepath does.

      See SERVER-76662 for flame graphs.

            Assignee:
            sean.zimmerman@mongodb.com Sean Zimmerman
            Reporter:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: