Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
272 views
in Technique[技术] by (71.8m points)

Confusion about mongodb's slow query log

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);?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...