mongopatch icon indicating copy to clipboard operation
mongopatch copied to clipboard

Collection used by dry-run keeps growing in disk size

Open kapetan opened this issue 10 years ago • 0 comments

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.

kapetan avatar Aug 01 '14 12:08 kapetan