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:

image

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. (03 Mar 2017) Replication changes in 3.5
  2. (01 Mar 2017) Delving into Documents with Data Subscriptions
  3. (27 Feb 2017) Building Codealike
  4. (23 Feb 2017) Implementing CQRS and Event Sourcing with RavenDB
  5. (21 Feb 2017) Zapping ever faster
  6. (17 Feb 2017) Should I use a document database?
  7. (15 Feb 2017) Know Thy Costs
  8. (13 Feb 2017) Lessons from the Trenches
  9. (09 Feb 2017) RavenDB Embedded at Massive Scales
  10. (07 Feb 2017) RavenDB for the Modern Web Developer
  11. (03 Feb 2017) Introducing RavenDB 4.0
  12. (01 Feb 2017) Introducing RavenDB 3.5