3

MongoDB does provide a compact command to free deleted space on a single collection, but my collection are actually deleted and no longer exists.

Then how can I free the deleted space? repairDatabase() is not a good idea since the whole database is really really large, larger than 5TBs.

Community
  • 1
  • 1
Zifei Tong
  • 1,697
  • 1
  • 19
  • 32

1 Answers1

1

i am afraid that there is no other options except repairDatabase() will help you here since the entire collection is deleted.

you can check this post for more info

Community
  • 1
  • 1
RameshVel
  • 64,778
  • 30
  • 169
  • 213