Tag Archives: db.collection.totalSize

MongoDB -Calculating Collection Size

Calculating Collection Size We can get the size of a collections by using the shell’s functions db.collection.dataSize() : Returns data size in bytes for the collection. db.collection.storageSize() : Returns allocation size in bytes, including unused space. db.collection.totalSize() : Returns the data size plus … Continue reading

Posted in MongoDB | Tagged , , , , | Leave a comment