Design a SQL analytics warehouse for product and revenue dashboards. Analysts run ad-hoc SQL and scheduled reports. Optimize for read-heavy aggregations while ingesting incremental updates from operational databases.
Functional requirements
- Support SQL queries with joins across fact and dimension tables
- Incremental ingest from OLTP via CDC or batch snapshots
- Role-based access to schemas and sensitive columns
- Materialized aggregates for hot dashboard queries
Non-functional requirements
- P95 query latency under 5s for common dashboards
- Columnar storage friendly to aggregations
- Separate compute from storage for burst workloads