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

Output of db.getProfilingStatus() misleadingly uses past tense

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: 6.0.5, 4.4.20, 5.0.16
    • Component/s: None
    • None
    • Query Optimization

      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.

       

       

       

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            ladan.nekuii@mongodb.com Ladan Nekuii
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: