简体   繁体   English

是否有任何设置可以使64位mongoDB中的数据库大小压缩?

[英]Is there any Settings to Enble the compression of DB size in 64-bit mongoDB?

I am using 64-bit MongoDB and I had done testing with 64-bit MongoDB. 我正在使用64位MongoDB,并且已经使用64位MongoDB进行了测试。 The testing details are as follows: 测试细节如下:

  1. I gave one million files as backup to my server using mongodb as my Database Storage. 我使用mongodb作为数据库存储将一百万个文件作为备份备份到服务器。
  2. My backup data size is "22.8-GB". 我的备份数据大小为“ 22.8 GB”。
  3. The mongodb size is "1.95GB". mongodb的大小为“ 1.95GB”。

Are there any settings available to compress the DB-Size before configuring the backup to the server? 在配置备份到服务器之前,是否有任何设置可用于压缩DB-Size?

There is no such compression option. 没有这样的压缩选项。

You may run --repair on the database in order to shrink if (if there is something to shrink). 您可以在数据库上运行--repair以缩小(如果有缩小空间)。 Otherwise apply the standard compression tools on the backup files.. 否则,将标准压缩工具应用于备份文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM