One of the collections has documents with a field "sc":[float]
. I want to iterate all documents and change this to "sc": float
, that is, remove the array and assign the float value directly to the key.
Isn't it true, that WiredTiger appends all updated documents instead of trying to do some in-place updates like MMap?
This would basically double the size of the database, with the initial half being obsolete data.
Do I need to call mongod -repair
in order to discard those obsolete documents, or is there something else I need to do?