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

Add NamespaceFilter to AuthOpObserver

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • None
    • None
    • None
    • Storage Execution
    • Fully Compatible
    • Execution Team 2023-12-11

    Description

      When initially implementing namespace filtering for OpObservers in SERVER-77364, there were four OpObservers that didn't filter on inserts.

      Upon deeper review, I see that the AuthOpObserver which logs certain server operations, ultimately inspects the namespace of the operation and only cares about namespaces that the filter already provides for.

      What makes this OpObserver extra expensive is that it does the namespace filtering for each element in a group of inserts, incurring an extra iteration over the list of inserts.

      Therefore, we should be able to add a namespace filter (like this) to the AuthOpObserver to pull in a slight performance improvement in the hot-path of every insert to user collections.

      Attachments

        Activity

          People

            matt.kneiser@mongodb.com Matt Kneiser
            matt.kneiser@mongodb.com Matt Kneiser
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: