ObjectCache and RavenDB Changes

RavenDb provides a push notifications mechanism, named Changes API, that allows you to receive messages from a server about events that occurred there. This mechanism makes is extremely simple to create a ChangeMonitor class that can be used with CacheItemPolicy, in order to expire cache items when something happens on the server (such as a document being … Read more

Compacting a RavenDB database

RavenDB Logo

One of my RavenDB databases grew to an unrealistic size – 36GB when it contains around 500,000 documents which are mostly small. After some back-and-forth with the RavenDB support team, I was suggested to compact the database. Sounds easy, if you know what you’re doing, since documentation on that is … let’s say lacking… Here’s what you … Read more

Querying our GitHub & NuGet data

Using RavenDB Index to query NuGet packages used in GitHub

In my previous posts, I’ve discussed how to retrieve the list of top repositories from GitHub,get the list of packages each one uses, and store all that informationin a RavenDb database. Now, it’s time to query all the data. RavenDb provides Map/Reduce indexes for querying the data. Let’s see some of the basic ones that … Read more