-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Diagnostics
-
Query Execution
Often times when using serverStatus programmatically, you only want to return a specific section. One reason to do so is to avoid the relatively high amount of load (and locks) placed on the server each time serverStatus is run, or to avoid hanging the command if some particular section takes out a lock that is currently held. It's possible to suppress individual sections in serverStatus by passing <section>: 0, but there's no way to suppress every section by default. It'd be nice to be able to run something like {serverStatus: 1, all: 0, sharding: 1}.