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

Output of db.getProfilingStatus() misleadingly uses past tense

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Trivial - P5 Trivial - P5
    • None
    • 6.0.5, 4.4.20, 5.0.16
    • None
    • None
    • Query Optimization

    Description

      To view the profiling level we need to issue the following from mongosh:

      db.getProfilingStatus()

      The shell returns a document similar to the following:

      { "was" : 0, "slowms" : 100, "sampleRate" : 1.0, "ok" : 1 }

      The was field indicates the current profiling level, which is confusing and makes users think it is showing the previous level of profiling since it uses past tense.

       

       

       

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            ladan.nekuii@mongodb.com Ladan Nekuii
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: