[SERVER-1136] Online defragCollection command Created: 19/May/10 Updated: 06/Dec/22 Resolved: 01/Jun/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Performance |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Mathias Stearn | Assignee: | Backlog - Storage Execution Team |
| Resolution: | Duplicate | Votes: | 38 |
| Labels: | nyc | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Assigned Teams: |
Storage Execution
|
||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
This would be useful to compact a collection after removing large fields. I think the best procedure would be to clone the collection, then replay the oplog onto the new collection, and finally do an atomic collection rename to replace the original. |
| Comments |
| Comment by Ian Whalen (Inactive) [ 01/Jun/18 ] |
|
This was implemented in 1.9.0 as tracked in |
| Comment by Nicolas Fouché [ 20/May/10 ] |
|
We're going to remove fields that take half the size of each document. And later probably other fields, for a total reduction of 80%. So.. we would love this feature. Right now, to compact data, we know these solutions:
|