DocumentDB offers information about performance. We can use these to fine-tune our indexing policy and make the best decision on performance versus storage.
We can check the ResourceResponse
class to get more information about the used RUs for a specific operation but also on other metrics. The following table outlines some of the properties of the ResourceResponse
class that can be used to gather some metadata on the resource requests we perform: