Sometimes you need to compact mongodb

to do that use

# mongo
MongoDB shell version: 2.0.0
connecting to: test
> use noc
switched to db noc
> db.noc.events.active.runCommand("compact")

and so on for all tables

You must use Mongodb 2.0 or above

  • No labels