Details
-
Improvement
-
Resolution: Won't Fix
-
Minor - P4
-
None
-
2.2.0-rc1
-
Storage Execution
Description
The global totals (accessesNotInMemory and pageFaultExceptionsThrown) currently occupy the same namespace as the database stats, which allows for a conflict if a database were to be named "accessesNotInMemory". This isn't an issue for BSON, as it doesn't require keys to be unique, but it would pose a problem working with this as JSON. I suggest grouping the databases under another key.
//Now
|
> db.serverStatus().recordStats
|
{
|
"accessesNotInMemory" : 0,
|
"pageFaultExceptionsThrown" : 0,
|
"local" : {
|
"accessesNotInMemory" : 0,
|
"pageFaultExceptionsThrown" : 0
|
},
|
"test" : {
|
"accessesNotInMemory" : 0,
|
"pageFaultExceptionsThrown" : 0
|
}
|
}
|
//Better
|
> db.serverStatus().recordStats
|
{
|
"accessesNotInMemory" : 0,
|
"pageFaultExceptionsThrown" : 0,
|
"databases" : {
|
"local" : {
|
"accessesNotInMemory" : 0,
|
"pageFaultExceptionsThrown" : 0
|
},
|
"test" : {
|
"accessesNotInMemory" : 0,
|
"pageFaultExceptionsThrown" : 0
|
}
|
}
|
}
|
|
|