RavenDBReplicating to a relational database

time to read 2 min | 369 words

I just finished implementing a very cool feature for RavenDB, the Index Replication bundle allows you to replicate an index to a relational database.

What does this mean? Well, consider the following document:

var q = new Question
     Title = "How to replicate to SQL Server?",
     Votes = new[]
         new Vote{ Up = true, Comment = "Good!"}, 
         new Vote{ Up = false, Comment = "Nah!"}, 
         new Vote{ Up = true, Comment = "Nice..."}, 

And this index:

from q in docs.Questions
select new 
         Title = q.Title, 
         VoteCount = q.Votes.Count

With the aid of the Index Replication bundle, that index will be replicated to a relational database, giving us:


You can find full documentation for this feature here and the bundle itself is part of RavenDB’s unstable as of build 159.

More posts in "RavenDB" series:

  1. (27 Mar 2018) Non-Constant Time Secret Comparison
  2. (26 Mar 2018) Encrypt, don’t obfuscate
  3. (23 Mar 2018) Encrypting data on disk
  4. (22 Mar 2018) Nonce reuse
  5. (20 Mar 2018) Finding and details