Direct Lake: Power BI reports straight from the lake

A Direct Lake semantic model reads gold Delta tables in OneLake, so a report shows new data without an import refresh. How it works, the two kinds, and what makes it fall back.

Short answer: Direct Lake is a storage mode for semantic model tables in Microsoft Fabric. It loads columns from Delta tables in OneLake into memory when a query needs them, and answers with the same engine as Import. Its "refresh" copies no data, only points the model at the newest version of each table, so new rows in gold show up in a report within seconds of being written.

Import is fast to query but copies every row on every refresh, which takes time and capacity as the data grows. DirectQuery copies nothing but sends every visual's query to the source, which is slower. Direct Lake takes the speed of the first and the freshness of the second, as long as the data is already shaped in the lake.

How does it compare with Import and DirectQuery?

Import
  • copies every row on refresh
  • fast queries
  • refresh takes time
DirectQuery
  • copies nothing
  • each visual queries the source
  • slower
Direct Lake
  • loads columns from Delta in OneLake when needed
  • fast queries
  • refresh is seconds
Three ways a semantic model gets its data

The refresh is the difference that matters day to day. Microsoft calls it framing: the model reads the Delta log of each table and points at its latest files. With automatic updates on, the model reframes on its own when the tables change.

What does the pattern look like?

  1. 1
    Gold Delta tablesa star schema: facts and dimensions
  2. 2
    Direct Lake modelrelationships and measures, no copy
  3. 3
    Reportas on any other semantic model
From the lake to a report

The model is thin on purpose: tables, relationships and measures. Every cleaning step lives upstream in the lakehouse, which is also why Direct Lake suits the gold layer of a bronze, silver and gold lakehouse.

Direct Lake on OneLake or on SQL?

There are two kinds, and they behave differently when something does not fit:

Direct Lake on OneLakeDirect Lake on SQL
Sourcesone or more Fabric items with Delta tablesone item, through its SQL analytics endpoint
SQL viewsnot supportedsupported, but they fall back to DirectQuery
SQL endpoint row-level securitynot appliedapplied, by falling back to DirectQuery
Over a capacity guardrailrefresh fails until the tables are optimisedfalls back to DirectQuery, slower
Mixed with Import tablesyesno, except through a composite model on top

Fallback means a query quietly runs as DirectQuery against the SQL analytics endpoint. The answer is still right, just slower. On Direct Lake on SQL, the model's Direct Lake behavior property decides: Automatic allows fallback, Direct Lake only turns it off so such queries fail instead.

What are the guardrails?

Each Fabric capacity size limits, per table, how many Parquet files, row groups and rows a Direct Lake table may have. On F2 to F32 it is 1,000 files, 1,000 row groups and 300 million rows; on F64 it is 5,000, 5,000 and 1.5 billion. Small files are the usual way to hit them: a table loaded in thousands of tiny appends needs an OPTIMIZE now and then, from a notebook or the lakehouse's table maintenance:

OPTIMIZE gold_sales VORDER;

What goes wrong?

  • A view in the model. On Direct Lake on SQL it falls back to DirectQuery on every query that touches it. Turn the view into a table in gold.
  • Duplicate keys on the one side. Queries fail when a dimension's key is not unique. Check uniqueness where you build gold, not in the model.
  • Security in two places. Row-level security in the SQL endpoint and in the model work differently in the two kinds. Decide on one place, usually the semantic model.

Where can you check this?

Where do you start?

The last lesson of A lakehouse in three layers builds gold as a star schema and a Direct Lake semantic model on top, in your own Fabric workspace. The pattern sits on the map of my work, at the end of every line.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.