RavenDB Hints and Tips

RavenDB Here is a list of hints and tips if you’re looking for some help with RavenDB.


  • Sign up for the mailing list where you can see other people’s previous questions and answers to problems on the View the Google Group.
  • To make sure RavenDB doesn’t clash with routing used in MVC change the global.asa.cs file from:-

    {controller}/{action}/{id} to {controller}/{action}/{*id} – Note the * next to the {id} or you can do this.

  • If I choose the Embedded version of RavenDB how do I start the server – to start the RavenDB server locate the RavenDB folder and then look for the server folder and then run Raven.Server.Exe
  • If I install RavenDB using Nuget then what do I do, locate the packages folder which is in the folder one above the solution you’ve added it to on the file system, locate the RavenDB folder and then look for the server folder and then run Raven.Server.Exe
  • How do you view the RavenDB Studio – easiest way is to browse to http://localhost:8080, that’s the default location of installation when you first run the Raven.Server.Exe
  • Unit testing – how best to go about it – the recommended way to go about this is by using the EmbeddedDocumentStore
    which is basically all done in memory, you can set it up like this:-

    [sourcecode language=”csharp”] var documentStore = new EmbeddableDocumentStore
    {
    DataDirectory = "Data",
    RunInMemory = true,
    UseEmbeddedHttpServer = true
    };
    [/sourcecode]
  • Good RavenDB Samples RavenOverFlow and Racoon Blog

If your stuck with something give me a shout I’ll see if I can shed some light, I’ll be adding more tips as I learn more RavenDB.