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

For uncapped collections, CollectionBulkLoaderImpl::insertDocuments should batch the documents and commits the batch in a single WriteUnitOfWork

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.2
    • Sprint:
      Repl 2019-06-17, Repl 2019-07-01, Repl 2019-07-15, Repl 2019-07-29
    • Linked BF Score:
      0

      Description

      Since CollectionBulkLoaderImpl is used only by initial sync, modify  CollectionBulkLoaderImpl::insertDocuments such that it batches the documents and performs batch insertion in a single WriteUnitOfWork. This batching applies only to uncapped collections which have either CollectionBulkLoaderImpl::_idIndexBlock or CollectionBulkLoaderImpl::_secondaryIndexesBlock set.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: