I've read mongodb official manual and many other resources, but I still have some confusion about where the slow queries are logged in mongodb. Is it logged in the *.log file (the file that is specified by systemLog.path) or in system.profile collection?
And is there any difference between setting "operationProfiling.mode" parameter to "all" and
db.setProfilingLevel(2);?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…