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

Batch Bulk inserts during the indexing collection scan

    • Storage Execution

      As a result of investigating SERVER-676 we discovered that simply batching bulk inserts at the end revealed a significant increase in performance during index builds.

      Right now inserts are performed 1-by-1, incurring the overhead of an entire WriteUnitOfWork for it. As we saw with BatchedDeletes, batching would alleviate the overhead.

      The very rough patch attached here yielded an approximate 10% improvement in throughput.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: