Good Day ,
What is the exact difference between profiling level 0 and 1
As per document , when profile level is 0 it says “The profiler is off and does not collect any data. This is the default profiler level.”
But in lab when i set “db.setProfilingLevel(0,{slowms:0})” and triggered a slow run query it got recorded in mongod.log
SO if level 0 doesnt collect data why it stored such data in logs ?
or am i misunderstanding any , kindly advise
FROM THE DOC <<<<<
0–>The profiler is off and does not collect any data. This is the default profiler level.
1—>
The profiler collects data for operations that exceed the slowms
threshold or match a specified filter.
When a filter is set:
- The
slowms
andsampleRate
options are not used for profiling. - The profiler only captures operations that match the filter.