Database Reference
In-Depth Information
Furthermore, MongoDB provides a great facility for developers to get a report from the
current running operations. The db.currentOp() function can be used to get this re-
port from a database engine.
This function accepts one optional parameter. The general format of using this function is
as follows:
db.currentOp(true)
You can use this function without any parameter or pass a Boolean value for the first para-
meter, that is, enable the verbosity mode of a function.
The following JSON format shows one record of this function:
{
"opid": 2580,
"active": true,
"op": "query",
"ns": "testdb.testcollection",
"query": {
"$query": {
"$or": [{
"name": "boo"
}],
"isActive": true,
"type": "1"
},
"orderby": {
"creationDate": -1
}
},
"client": "127.0.0.1:60371",
"desc": "conn613",
"threadId": "0x13d510000",
"connectionId": 613,
"waitingForLock": false,
"numYields": 0,
"lockStats": {
"timeLockedMicros": {
Search WWH ::




Custom Search