How RavenDB Models Data using Indexes
by Oren Eini

How RavenDB Models Data using Indexes

 
 


RavenDB Indexes are known for their high performance. But that is just the tip of the iceberg. Relational databases may use indexes to speed up how your database accesses your data by creating a fast lane to your tables, but when it comes to data modeling, relational indexes don't do much.

In RavenDB, indexes make use of MapReduce computations to deliver aggregated data. Your indexes impact your data and the documents outputted. This makes RavenDB indexes a significant factor in your data modeling.

Why restrict your use of indexes to aggregate data when you can use those aggregations to predict future data your database will likely query?

You can save index results as physical documents in an artificial collection. Not only can your indexes generate new domain entities, but you can also create other indexes using those same stored documents.

You can even use indexes to create a fully event-sourced system where documents are aggregated and then stored as artificial documents, enabling higher-order indexes to serve a read-only aggregation layer.

Deploy all of it with code!

In this article, RavenDB Rockstar Kamran Ayub codes away to take you on a guided tour of modeling your data with RavenDB Indexes.


Categories:

LIVE
DEMO
Request Live Demo

LIVE DEMO

Request a customized
presentation of RavenDB

Request Live Demo

Request a customized presentation of RavenDB