[SERVER-4349] Give option to compact to compact index buckets to be at full capacity Created: 22/Nov/11 Updated: 06/Dec/22 Resolved: 14/Sep/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance, MMAPv1 |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Spencer Brody (Inactive) | Assignee: | Backlog - Storage Execution Team |
| Resolution: | Won't Fix | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Storage Execution
|
| Participants: |
| Description |
|
Currently when we compact an index we leave a bit of extra room in every index bucket so that it has room to grow. If you're indexing a key that is always increasing (such as with an ObjectId), nothing will ever get written into any bucket except the right-most one, so it'd be nice to leave all other buckets at 100% capacity so no space is wasted. |