Understanding the use of x-ms-resource in the DocumentDB response header

When performing a simple Get operation by identifier, where one document is returned (and not an array with one document), I get the following x-ms-resource resources usage:

x-ms-resource-usage:documentSize:0;documentsSize:288;collectionSize=307;

Questions:

  • Why is documentSize0?
  • What is the unit of measurement? B
  • What is the difference between documentSizeand documentsSize? Note that the query returns only one document.
  • What is collectionSize? Is this the total number of documents in the collection?
  • What is the difference between x-ms-resource-usageand x-ms-resource-quota?
+4
source share
2 answers

I am sure that the numbers are as follows, and all in KB:

  • documentSize: Document Size
  • documentsSize:
  • collectionSize: , ,

x-ms-resource-usage - , x-ms-resource-quota - . , , documentsSize collectionSize - 10485760, 10 (10 485 760 ).

+2

documentSize documentsSize - MB kB. -, documentSize .

collectionSize = documentsSize + ( kB)

0

Source: https://habr.com/ru/post/1627824/


All Articles