strands-project / mongodb_store

MongoDB tools for storing and analysing runs of ROS systems.
BSD 3-Clause "New" or "Revised" License
49 stars 72 forks source link

Recovering disk space #181

Open mbeneto opened 7 years ago

mbeneto commented 7 years ago

Dear all.

From some days ago I'm using mongodb_store to store long nav_msgs/Path. It is really convenient, comparing with the old "database" I was using.

After performing some test and searches, I found that the proper way to recover disk space after document deletions is to execute the command db.repairDatabase(). However, I realised after some tests that it wasn't having the desired effect in my database, quite the opposite, it was occupying even more space on the disk. After this, I found out that when deleting a document, a copy of it is made in the "message_store_Trash" collection.

What is the correct way to delete this collection? There's any way to avoid the creation of it and directly delete the files?

Best regards, Marc.