Regular collection scans (without index) don't log the "nscanned" value anymore:
2014-02-19T16:01:08.210+1100 [conn15] query test.mgendata query: { class: "something" } planSummary: COLLSCAN ntoreturn:0 ntoskip:0 keyUpdates:0 numYields:7 locks(micros) r:5110987 nreturned:0 reslen:20 2639ms
The same query with .explain() logs the "nscanned" value.
2014-02-19T16:01:13.011+1100 [conn15] query test.mgendata query: { query: { class: "something" }, $explain: true } planSummary: COLLSCAN ntoreturn:0 ntoskip:0 nscanned:7100000 keyUpdates:0 numYields:5 locks(micros) r:4789802 nreturned:1 reslen:582 2528ms
The "nscanned" value in the log file is important for performance analysis and should always be logged, like in previous versions.
- is duplicated by
-
SERVER-8912 Metric "document.scanned" is not the same as nscannedObjects (from explain)
- Closed