Output of db.getProfilingStatus() misleadingly uses past tense

XMLWordPrintableJSON

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

      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:
            [DO NOT USE] Backlog - Query Optimization
            Reporter:
            Ladan Nekuii
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: