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

Batch writes when building an index

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance, Storage
    • None
    • Storage Execution

      We're seeing some performance issues with MongoDB when there are a lot of indexes being built in the background. Currently, there is an index commit after every insert: https://github.com/mongodb/mongo/blob/master/src/mongo/db/catalog/index_create.cpp#L266

      The performance is likely to be much better if we could batch a couple of writes together.

      Is this something you would be interested in? I might be able to draft the patch, too.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            igor Igor Canadi
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: