mongopatch
mongopatch copied to clipboard
Collection used by dry-run keeps growing in disk size
The _mongopatch_tmp
collection keeps growing on the disk, even though it doesn't contain any documents. MongoDB doesn't reclaim the disk space when documents are deleted.
Possible solutions, make the collection a capped collection or drop the collection before running a dry-run.
The repairDatabase
command isn't really an option as it locks the whole database while it's running.