Quantcast
Channel: SQL Server Blog
Viewing all articles
Browse latest Browse all 1849

MongoDB – Calculating Document Size

$
0
0
  • We can get the size of a document is to 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 document id.

documentSize



Viewing all articles
Browse latest Browse all 1849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>