When I run below command in mongo shell,
db.stats()
I get below and this is wired. When I check mongoDB installation folder it only used around 2 GB disk space?
see below fsTotalSize over 80 GB
When I run below command in mongo shell,
db.stats()
I get below and this is wired. When I check mongoDB installation folder it only used around 2 GB disk space?
see below fsTotalSize over 80 GB
From dbStats documentation:
fsTotalSize
and fsUsedSize
are about the filesystem that the database is stored on. They'd be used to get an idea about how much the database could grow to.dataSize
is the size of the all the documents themselves.storageSize
is the size of the data stored on the filesystem (it can be smaller than the dataSize
if using compression).So the database takes up 6.7MB
on the filesystem.