Mongodb删除数据库后为什么数据文件还存在?
循环插入了1kw条数据。然后在rockmongo中删除了这个数据库。但是数据目录还是有一堆文件存在,而且还不小。
走同样的路,发现不同的人生
After deleting the database, there is still pre-allocated space on the disk, so you need to execute:
db.repairDatabase()
PS: It is not recommended to use it in an online environment, as it may cause excessive load and service interruption.
After deleting the database, there is still pre-allocated space on the disk, so you need to execute:
db.repairDatabase()
PS: It is not recommended to use it in an online environment, as it may cause excessive load and service interruption.