O'Reilly logo

RavenDB 2.x Beginner's Guide by Khaled Tannir

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – implementing RavenDB sharding (the blind mode)

Now that you have prepared the shard infrastructure for the ShardRavenDB application, you are now ready to create it and learn how to create and populate shards. Once the application is created, you will run it and then observe and analyze the RavenDB logs:

  1. In Visual Studio, create a new Console Application and name it ShardRavenDB.
  2. Add the RavenDB Client reference to the application using the NuGet package manager.
  3. Add a new class, name it City, and complete it using the following code snippet:
    Time for action – implementing RavenDB sharding (the blind mode)
  4. Add a new class, name it Country, and complete it using the following code snippet:
  5. Add a new ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required