Prettymongosnaphot
This patch changes the export of mongo snapshots from a online per document format to a pretty json format. With this a change in a document of mongodb does not require an update of the whole document but a small delta update is possible. Additionally, it is much easier to see what changed in an update since the lines are not thousands of charachters long.
old format: { "_id": { "$oid": "5501e76e0efe001bc1fdf999" }, "attrs": { "measure": [ { "value": { typeName": "::memoryx::OacStatisticalMeasureBase", "value": { "count": 0, "countFailed": } } } ] } }
new format:
{
"_id": {
"$oid": "5501e76e0efe001bc1fdf999"
},
"attrs": {
"measure": [
{
"value": {
"typeName": "::memoryx::OacStatisticalMeasureBase",
"value": {
"count": 0,
"countFailed": 0
}
}
}
]
}
}