Re: Will MongoDB record all the db operations?

37 views
Skip to first unread message

Stephen Steneker

unread,
Nov 4, 2012, 3:33:37 AM11/4/12
to mongod...@googlegroups.com

Sorry for my pool English.
The problem is how and I find out the db operations in logs.
 If I run ">db.foo.find();"  is the any log logged this operation?

Hi,

Normally mongod will only log operations that are slower than the --slowms value (default 100ms).

You can enable the query profiler at a level of "2" to log all read/write operations to the system.profile capped collection:

Note that there is a separate system.profile collection per database.

Cheers,
Stephen

王锐

unread,
Nov 7, 2012, 3:08:45 AM11/7/12
to mongod...@googlegroups.com
Thank you very much, it will work.

Stephen Steneker於 2012年11月4日星期日UTC+8下午4時33分37秒寫道:
Reply all
Reply to author
Forward
0 new messages