Tag Archives: object.bsonsize

MongoDB – Calculating Document Size

We can get the size of a document is by using the shell’s Object.bsonsize()Β function. We pass the object_id of the document to get the size For example in the fooΒ collection, we can find the size of the document using any … Continue reading

Posted in MongoDB | Tagged | Leave a comment