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

Skip opening storage snapshot for fast count in order to regain 10-15% performance

    XMLWordPrintableJSON

Details

    • Execution Team 2021-10-18
    • 15

    Description

      With LFR work, we can now access the CollectionCatalog to fetch a safe-to-use Collection shared_ptr without any lock helper.

      Switching the count cmd generally over to LFR has introduced explicitly opening storage snapshots, rather than implicitly in the storage integration layer when a read is actually requested. Since fast count doesn't access the storage layer, LFR early opening of storage snapshots is slowing down the operation significantly.

      The storage snapshot is opened via the LFR lock helper, which should be removed.

      Attachments

        Activity

          People

            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: