-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Performance, Querying
-
None
-
ALL
runQuery() makes a call to getStats() (which generates the stats tree as BSON) if the profiler is enabled /or/ if the query will generate a log line. However, only the profiler consumes the stats tree. This means that getStats() is unnecessarily called if the query will generate a log line and the profiler is disabled (which is quite a common case, and getStats() is extraordinarily expensive).
- duplicates
-
SERVER-17282 Implement find command on mongod
- Closed