MicrosoftLearning / dp-420-cosmos-db-dev

DP-420: Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB
https://microsoftlearning.github.io/dp-420-cosmos-db-dev/
MIT License
81 stars 95 forks source link

Lab 23 Observation #29

Closed ejneuman closed 9 months ago

ejneuman commented 1 year ago

At the very end of this lab, the following statement is made:

Observe the new RU charge in the console output, which should be slightly less than the original charge:

This actually isn't quite accurate. The new RU charge is slightly less than the modified index, and not the original charge. For comparison:

Original: 48.38 RU Modified Index: 8.38 RU No Index: 7.05 RU

MScalopez commented 9 months ago

Very good point. The whole lab is to show how modifying the index on write heavy databases can significantly reduce cost. I have made changes to the observation to better explain why you see those numbers.