excuse me, could you please let me know the purpose of this operation?
Do you try to find a way to free the hard disk space that mongodb was taking by removing the actual data?
when he said "空间并没有释放", that refers to the disk space or memory?[/quote]
他所指的是硬盘。
例如:test数据库的数据文件,test.1 有2G 那即使我们删除了test数据库中的test1表(1.5G大小),test.1这个数据文件不会变动还是2G,只不过test数据库之后的数据写入会继续在这个数据文件中进行。
when he said "空间并没有释放", that refers to the disk space or memory?[/quote]
他所指的是硬盘。
例如:test数据库的数据文件,test.1 有2G 那即使我们删除了test数据库中的test1表(1.5G大小),test.1这个数据文件不会变动还是2G,只不过test数据库之后的数据写入会继续在这个数据文件中进行。[/quote]
That is what I thought, even u remove the collection, the disk space will not be released coz that is the space allocation strategy of mongo, isn't it?
It is the trade of between performance and resource. You will definitely see a larger profiles for mongo on ram and disk space. So, mongo is a monster in that context...