Status: Accepted (in force). Reconstructed 2026-07-21.

Context

Reports are wide (many columns across many entities) and aggregate (trends, summaries). Running them against the live operational databases would mean expensive multi-join queries and heavy aggregation on the same tables serving day-to-day transactions — slow reports and contention with live operations.

Decision

Build a separate Warehouse database (WarehouseDbContext, resolved by WarehouseDbFactory) with two table shapes:

Reports and dashboards read the Warehouse; operational writes never touch it directly.

Consequences

Good:

Bad / costs:

Alternatives