[SERVER-47407] Avoid WriteUnitOfWork in index build collection scan loop Created: 08/Apr/20 Updated: 29/Oct/23 Resolved: 09/Apr/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.2.6, 4.4.0-rc1, 4.7.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Louis Williams | Assignee: | Louis Williams |
| 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.4
|
||||||||||||||||
| Sprint: | Execution Team 2020-04-20 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Linked BF Score: | 0 | ||||||||||||||||
| Description |
|
This WUOW is not necessary for hybrid index builds because we insert all keys into the external sorter, which is not part of the storage engine. We could improve index build performance by not having to open and close a storage transaction every iteration. This fixes a perf regression introduced by |
| Comments |
| Comment by Githook User [ 16/Apr/20 ] |
|
Author: {'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}Message: (cherry picked from commit 34c8bef2ebbe355aef0439a5b85313db1c2f242d)
(cherry picked from commit 4e23322e27b6372e7c747a68a3f657f16211b540)
(cherry picked from commit e9379fcee79456d3795b598ccad91a0694007d0e) |
| Comment by Githook User [ 10/Apr/20 ] |
|
Author: {'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}Message: (cherry picked from commit e9379fcee79456d3795b598ccad91a0694007d0e) |
| Comment by Githook User [ 09/Apr/20 ] |
|
Author: {'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}Message: |