[SERVER-20491] No need to loop over entire system.indexes collection when renaming a collection Created: 18/Sep/15 Updated: 06/Dec/22 Resolved: 14/Sep/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code, MMAPv1 |
| Affects Version/s: | 3.1.8 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Charlie Swanson | Assignee: | Backlog - Query Team (Inactive) |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query
|
| Sprint: | QuInt A (10/12/15), QuInt B (11/02/15) |
| Participants: |
| Description |
|
When renaming a collection, we have to update all the entries in the system.indexes collection that refer to the old name to instead refer to the new name. Currently, we loop over the entire system.indexes collection to do so. This is unnecessary as we have the RecordIds of each entry, so we can update them directly. |