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

slowms should be per database for profiler

    XMLWordPrintableJSON

Details

    • Query Optimization

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              backlog-query-optimization Backlog - Query Optimization
              scotthernandez Scott Hernandez (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: