RavenDB 4.1 Features: Counting My Counters
Documents are awesome. They allow you to model your data in a very natural way. At the same time, there are certain things that just don’t fit into the document model.
Consider the simple case of counting. This seems like it would be very obvious, right? However, you need to also consider concurrency and distribution. Look at the image above. What you see there is a document describing a software release. In addition to tracking the features that are going into the release, we also want to count various statistics about the release. In this example, you can see how many times a release was downloaded, how many times it was rated, etc.