Temporal Map Reduce
Temporal Map/Reduce is needed if you want to be able to get totals at an arbitrary point in time. This is a difficult problem to solve, and requires an advanced pattern that is currently difficult to express in RavenDB. Refer to the Employees_TemporalCount
index in the unit tests for an example of how it can be done. Also be sure to look at the way that this data must be queried in order to get valid results.
There may be ways to express indexes more easily if one can predetermine specific intervals to query. For example, you might build a Foos_DailyCounts
index that has the counts per day. This would probably require use of Enumerable.Range
in the index map. An example of this technique is forthcoming.
Introduction
Home
About Temporal Versioning
About DateTimeOffset
Setup
Installation
Enabling The Bundle
Client Initialization
Configuration
Migration
Usage
Specifying Effective Dates
Basic CRUD Operations
Temporal Activation
Querying Temporal Data
Querying Dynamically
Querying a Static Index
Map/Reduce of Current Data
Advanced
Temporal Map/Reduce
Temporal Relationships
Guidance
Getting an Audit Trail
Practical Application Guidance
Reference
Misc