Sub topic 14
Choosing a storage mode: a decision guide
This chapter assumes you know the three modes from earlier chapters. Import copies data into VertiPaq. DirectQuery sends queries to the source at report time. Direct Lake loads Delta columns from OneLake into memory. You should also be comfortable with star schemas and basic DAX.
Start from the requirement that cannot bend
Most choices come down to one hard constraint. Find it first, then use the other factors to break ties.
| Factor | Import | DirectQuery | Direct Lake |
|---|---|---|---|
| Data freshness | As of last refresh | Current at each query | As of last framing (refresh) of the Delta tables |
| Query speed | Fastest, in memory | Depends on the source | Fast once columns are loaded |
| Capacity use | Memory for a full copy | Low in the model | Memory for the columns used |
| Source load | During refresh only | On every visual query | Low, files are read from OneLake |
| DAX and Power Query | Full | Limited | Full DAX, no Power Query transformations in the model |
| Data location | Any supported source | Any supported relational source | Delta tables in OneLake |
A decision flow
Apply the guide to scenarios
- Monthly finance reports from several sources. Import. Freshness of a day is fine, and you need full DAX and Power Query shaping.
- Operational dashboard over a live transactional database. DirectQuery. Users need current rows, so accept the source load. Index the source and keep measures simple.
- Lakehouse already built in Fabric. Direct Lake. You avoid a copy step and still get in-memory speed.
- Billions of fact rows plus small dimensions. Composite model. Keep the fact table in DirectQuery with an Import aggregation table, and set dimensions to Dual.
- Years of history, with only recent data changing. Import with incremental refresh, so each refresh reloads only recent partitions.
Check the secondary factors
- Security. In DirectQuery, you can pass the user's identity to the source so source-level security applies. Row-level security (RLS) defined in the model works in every mode, but Direct Lake falls back to DirectQuery if the source tables use SQL-level security. Confirm this before you commit.
- Capacity. Import and Direct Lake both consume memory. Check that the model fits your capacity limits.
- Fallback risk. A Direct Lake model that falls back to DirectQuery is slower and loads the SQL endpoint. Test the queries you care about.
Common errors
- Choosing DirectQuery for a large, poorly indexed source and blaming Power BI for slow visuals.
- Choosing Import without checking dataset size limits, then hitting refresh timeouts. Incremental refresh often fixes this.
- Assuming Direct Lake accepts any source. The data must be Delta tables in OneLake.
Exercise
A retail team has sales data in a Fabric lakehouse as Delta tables. Managers accept data that is up to 15 minutes old. Which storage mode fits best, and what should you test before release?
Show answer
Direct Lake, because the data is already in OneLake as Delta tables and 15-minute-old data is acceptable after reframing. Test the key report queries for fallback to DirectQuery (for example, caused by SQL-level security or unsupported features), since fallback would slow them down and add load on the SQL endpoint.