[SERVER-27725] Use batch insert when migrating chunks Created: 17/Jan/17 Updated: 23/Nov/22 Resolved: 20/Jul/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 3.4.17, 3.6.7, 4.0.2, 4.1.1 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Daniel Pasette (Inactive) | Assignee: | Cheahuychou Mao |
| Resolution: | Done | 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.0, v3.6, v3.4
|
||||||||||||||||||||||||||||||||||||
| Sprint: | Sharding 2017-12-04, Sharding 2018-07-02, Sharding 2018-07-16, Sharding 2018-07-30 | ||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||||||||||||||||||
| Linked BF Score: | 0 | ||||||||||||||||||||||||||||||||||||
| Description |
|
We currently upsert one document at a time in the receive portion of chunk migration. We should be able to batch insert documents and fall back to one-at-a-time if there is an error. This should be a performance win, but needs to be tested. |
| Comments |
| Comment by Githook User [ 29/Aug/18 ] |
|
Author: {'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}Message: (cherry picked from commit b20b8c2a6930a43004c776f011212af2f2fcd59a) |
| Comment by Githook User [ 29/Aug/18 ] |
|
Author: {'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}Message: |
| Comment by Githook User [ 08/Aug/18 ] |
|
Author: {'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com', 'username': 'cheahuychou'}Message: (cherry picked from commit b20b8c2a6930a43004c776f011212af2f2fcd59a) |
| Comment by Githook User [ 08/Aug/18 ] |
|
Author: {'username': 'cheahuychou', 'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com'}Message: (cherry picked from commit b20b8c2a6930a43004c776f011212af2f2fcd59a) |
| Comment by Githook User [ 20/Jul/18 ] |
|
Author: {'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com', 'username': 'cheahuychou'}Message: |