Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-20491

No need to loop over entire system.indexes collection when renaming a collection

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 3.1.8
    • Internal Code, MMAPv1
    • None
    • Query
    • QuInt A (10/12/15), QuInt B (11/02/15)

    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.

      Attachments

        Activity

          People

            backlog-server-query Backlog - Query Team (Inactive)
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: