While performing a simple Get operation by Id where a single document is returned (not an array with one document) I get the following x-ms-resource-usage:
x-ms-resource-usage:documentSize:0;documentsSize:288;collectionSize=307;
Questions:
documentSize
0?documentSize
and documentsSize
? Please note the query only returns one document.collectionSize
? Is that the total number of documents in the collection?x-ms-resource-usage
and x-ms-resource-quota
?Master key tokens The master key token is the all access key token that allows users to have full control of Cosmos DB resources in a particular account. The master key is created during the creation of an account. There are two sets of master keys, the primary key and the secondary key.
Note that the {databaseaccount} is the name of the Azure Cosmos DB account created under your subscription. The {db-id} value is the user generated name/ID of the database, not the system generated ID (rid). The {coll-id} value is the name of the collection. The {doc-id} value is the ID of the document to be retrieved.
Create Simple Stored ProcedureIn the Azure Cosmos DB blade, locate and select the Data Explorer link on the left side of the blade. In the Data Explorer section, expand the NutritionDatabase database node and then expand the FoodCollection container node. Within the FoodCollection node, select the Items link.
The ID element is a unique string that is user-settable and must not exceed 255 characters. You can insert, replace, delete, read, enumerate, and query arbitrary JSON documents in a collection. Azure Cosmos DB does not require any schema or secondary indexes in order to support querying over documents in a collection.
I'm fairly sure the numbers are as follows, and all in KB:
documentSize
: Size of the documentdocumentsSize
: Combined size of all documents in collectioncollectionSize
: Combined size of all documents in collection, along with overhead such as indexesx-ms-resource-usage
is about consumed resources within the collection, while x-ms-resource-quota
is going to give you your limits. So with quota, you'll see documentsSize
and collectionSize
both set to something like 10485760, which is 10GB (10,485,760 MB).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With