[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: |
|
||||||||||||||||||||||||||||||||
| 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: |