As we all know, the maximum size of a single MongoDB document is 16MB.
Is there any way to find out the size of a specific document?
Or how many pieces of data do you need to insert to make a document 16MB?
var doc = db.coll.findOne({...}); print(Object.bsonsize(doc));