A
A
Alexander Grishin2015-04-02 15:28:39
MongoDB
Alexander Grishin, 2015-04-02 15:28:39

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

1 answer(s)
A
Alexander Grishin, 2015-04-02
@beerdy

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 question

Ask a Question

731 491 924 answers to any question