w3resource

MongoDB: db.getProfilingStatus() method

db.getProfilingStatus

The db.getProfilingStatus() method is used to return a document that reflects the current profiling level and the profiling threshold.

Syntax:

db.getProfilingStatus()

Example: MongoDB: db.getProfilingStatus() method

db.getProfilingStatus();

Output:

> db.getProfilingStatus();
{ "was" : 0, "slowms" : 100 }

Retrieve the restaurants data from here

Previous: db.getPrevError() method
Next: db.getSiblingDB() method



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://www.w3resource.com/mongodb/shell-methods/database/db-getProfilingStatus.php