9. Serving layer: Gold star schema through Direct Lake on OneLake
9. Serving layer: Gold star schema through Direct Lake on OneLake
Date: 2026-10-26
Status
Accepted
Problem
Gold must serve reporting (Power BI), ad-hoc analysis (SQL) and downstream pulls. Power BI storage modes differ in where capacity is burned and in failure behaviour: Import copies the data and burns capacity at refresh; DirectQuery burns capacity on every visual; Direct Lake on the SQL endpoint silently falls back to DirectQuery when views, SQL-endpoint security or guardrails trip; Direct Lake on OneLake never falls back and fails loudly instead.
Decision
We will serve Gold as follows.
- Storage: Delta tables in
lh_gold, V-Ordered, OPTIMIZE after each Gold run (small files are the main Direct Lake guardrail risk), partitioned by month for the large facts. - Semantic model: Direct Lake on OneLake (not on the SQL endpoint), one model per subject area (marketing performance; funnel and engagement), reframed by the pipeline after the Gold run rather than relying on automatic updates. Measures in DAX; no calculated columns that force Import.
- Security: row-level and object-level security
defined in the semantic model (region, brand, and the
marketing-analystrole for person-level facts). No row-level security, dynamic masking or views at the SQL analytics endpoint, because those force fallback on the SQL-endpoint flavour and are unavailable to Direct Lake on OneLake anyway. - Ad-hoc SQL and downstream pulls: the SQL analytics
endpoint of
lh_gold, read-only, for analysts and nightly consumers. - Operational point reads: none at launch. If an application needs them, add a Fabric SQL database or Azure SQL fed from Gold rather than pointing an application at the lakehouse.
- Development:
DirectLakeOnlybehaviour on models during development so a guardrail breach is an error, not a slow report. TheTABLETRAITS()check and the Capacity Metrics app are part of the release checklist.
Considered Options
| Option | Summary | Pros | Cons |
|---|---|---|---|
| ✅ Direct Lake on OneLake | Model pins a Delta version, pages columns on demand | No copy, no refresh window, seconds to reframe; fails loudly | Guardrails (file and row-group counts) must be respected; security must live in the model |
| Direct Lake on SQL endpoint | Same, with SQL endpoint in the path | Can use SQL views and endpoint security | Silent fallback to DirectQuery under views or security, burning SQL-endpoint capacity per visual |
| Import | Full copy in VertiPaq | Works with any source; complex DAX friendly | Refresh cost and double memory during refresh; stale between refreshes; refresh scheduling becomes an ops task |
| DirectQuery | Every visual a query | Always live | Capacity per click; concurrency caps; slowest user experience. Never for this workload. |
| Warehouse as Gold with Direct Lake | T-SQL Gold | Multi-table transactions; familiar to SQL teams | Second write engine; no benefit for a notebook-built star schema. Revisit if analysts need DML. |
Consequences
Positive:
- Reporting cost is decoupled from report usage; capacity is spent at Gold build time, once.
- Freshness of reports equals Gold build cadence.
Negative / Trade-offs:
- Semantic-model security must be designed, not inherited from SQL.
- Large models need OPTIMIZE discipline; memory limit per SKU bounds model size (paging helps on OneLake).
Risks: | Risk ID | Description | Impact (E/H/M/L) |
Mitigation | |---------|-------------|------------------|------------| |
R1 | Gold grows past the SKU memory limit | M | Aggregate facts;
partition pruning; scale SKU for the reporting capacity only | | R2 | A
developer adds a SQL view to "fix" a report and trips fallback | M |
Views are not permitted on lh_gold; release checklist runs
the fallback check |
Related
- Related ADRs: 1, 2, 6
- Related requirements: Scalability and cost; Data integrity
- Related documents: Gold schema, technology architecture, Power BI storage modes on Fabric (infographic)
- Principles: BP-02, DP-07
- TOGAF phase: D
- Decision maker(s): Lead Architect, BI lead
- Stakeholders: Report consumers, Marketing Operations