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

slowms should be per database for profiler

    • Query Optimization

      The slowms constant is not per database but is process wide.

      > db.setProfilingLevel(1,1000)
      { "was" : 0, "slowms" : 100, "ok" : 1 }
      > db.getProfilingStatus()
      { "was" : 1, "slowms" : 1000 }
      > use test2
      switched to db test2
      > db.setProfilingLevel(1,2)
      { "was" : 0, "slowms" : 1000, "ok" : 1 }
      > db.getProfilingStatus()
      { "was" : 1, "slowms" : 2 }
      > use test
      switched to db test
      > db.getProfilingStatus()
      { "was" : 1, "slowms" : 2 }
      

      Notice how slowms went to 2 in the test database... That is not good.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: