Answer the question
In order to leave comments, you need to log in
Mongodb Object.bsonsize()?
If you use Object.bsonsize() for large documents, for example, 4 megabytes,
After all, as I understand it, with Object.bsonsize(), the entire document is read in order to then calculate its size
. Wouldn't it be faster to increment the number of bytes for this document in a separate table?
Answer the question
In order to leave comments, you need to log in
Irrelevant because an increment needs a base, and the base is just reading and calculating the length of the document.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question