Aug 192011
Repair and compact database in MongoDB
Answer:
To repair and compact a database in MongoDB, you can use the following command in the mongodb Interactive shell.
1. Select the database
use test
2. Repair the current database
db.repairDatabase()
Done.