我在/var/log/mongodb/mongod.log
上看到大量日志
2018-12-15T21:40:24.119+0000 I COMMAND [conn358] query MyApp.projects query: { id: "8146dbd6-6233-4e8b-8e39-857d3a6e0baf" } planSummary: COLLSCAN ntoskip:0 nscanned:0 nscannedObjects:165099 keyUpdates:0 writeConflicts:0 numYields:1289 nreturned:1 reslen:388 locks:{ Global: { acquireCount: { r: 2580 } }, MMAPV1Journal: { acquireCount: { r: 1290 } }, Database: { acquireCount: { r: 1290 } }, Collection: { acquireCount: { R: 1290 } } } 105ms
2018-12-15T21:44:56.130+0000 I COMMAND [conn357] query MyApp.projects query: { id: "a85ad8e5-44e5-44e6-91b1-2b93d7f1a5ac" } planSummary: COLLSCAN ntoskip:0 nscanned:0 nscannedObjects:169438 keyUpdates:0 writeConflicts:0 numYields:1323 nreturned:1 reslen:382 locks:{ Global: { acquireCount: { r: 2648 } }, MMAPV1Journal: { acquireCount: { r: 1324 } }, Database: { acquireCount: { r: 1324 } }, Collection: { acquireCount: { R: 1324 } } } 110ms
我不确定是否手动启用了这些日志,或者它是否是默认日志。我对这些日志条目有一些疑问。