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

Avoid additional read from DurableCatalog in CollectionImpl::initFromExisting

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • None
    • None
    • None
    • Storage Execution
    • Fully Compatible
    • Execution Team 2023-02-06

    Description

      When initializing a collection object, we sometimes need to get the index ident from the durable catalog.

      However, this read from the durable catalog is redundant, since we've already read the catalog entry from the durable catalog before calling this function.

      We should find a way to remove the additional read from the durable catalog during CollectionImpl::initFromExisting by passing the necessary information from the durable catalog through the call site.

      The current BSONCollectionCatalogEntry object, however does not contain any information about index idents, so we may need to add a way to obtain both the catalog entry and the idxIdent field with one DurableCatalog function call.

      See the catalog arch guide for an example of the durable catalog format

      Attachments

        Activity

          People

            gregory.wlodarek@mongodb.com Gregory Wlodarek
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: