azure - Determining size of a JSON document stored in DocumentDB -


i'm developing partitioning strategy multi-tenant application running on documentdb.

since each collection allows 10gb of storage attempting calculate how many documents each of tenants can store, can come number of tenants can place collection.

i have sample json document represents common document tenant may store. using document explorer on azure portal not tell me size of 1 of these documents on disk (just general graph of usage percentage).

i'm using documentdb studio , unable determine document sizes there. can use notepad locally, depending on encoding settings (ansi, , etc..) getting various results.

my questions are:

is there accurate way determine file size json file stored within documentdb can calculate resource usage of application?

is there way size of document or group of documents via query against collection?

yes - can calculate size of document query response, system properties (e.g. _rid, _ts) included. want use utf-8 encoding correct size.

you want factor in additional ~10% indexing storage costs.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -