[SERVER-41530] For uncapped collections, CollectionBulkLoaderImpl::insertDocuments should batch the documents and commits the batch in a single WriteUnitOfWork Created: 05/Jun/19  Updated: 29/Oct/23  Resolved: 12/Jul/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Task Priority: Major - P3
Reporter: Suganthi Mani Assignee: Allison Easton
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
Related
related to SERVER-16206 Use the WT bulk loader for collection... Closed
is related to SERVER-41890 Remove unused oplog insert code from ... Closed
is related to SERVER-41932 Remove unused validation code from Co... Closed
is related to SERVER-42082 Change insertDocumentForBulkLoader to... Closed
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
Participants:
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.



 Comments   
Comment by Suganthi Mani [ 22/Jul/19 ]

ratika.gandhi Yes, it needs to backported to 4.2.

Comment by Ratika Gandhi [ 18/Jul/19 ]

suganthi.mani, please confirm if this ticket should be backported to 4.2. 

Comment by Githook User [ 12/Jul/19 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com'}

Message: SERVER-41530 For uncapped collections, CollectionBulkLoaderImpl::insertDocuments
should batch the documents and commit the batch in a single WriteUnitOfWork
Branch: master
https://github.com/mongodb/mongo/commit/49b66d842d58eba32c72bb9ef8f3cd6fd7d0c9ed

Generated at Thu Feb 08 04:57:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.