Your Direct Lake report didn't get slow. It stopped being Direct Lake.

2026-12-01来源 dev.toEnglish

A Direct Lake semantic model is fast because it reads Delta columns straight out of OneLake. No import, no refresh window, no second copy of the data. Then one morning the same report takes eight seconds instead of one, and nobody has touched the report.

The report is usually fine. What changed is that some of its queries stopped running in Direct Lake at all.

Fallback is a feature, and it is silent

When a Direct Lake model cannot serve a query from OneLake, it does not fail. It switches that query to DirectQuery against the SQL analytics endpoint. Users see a slower visual, not an error, which is why this reaches you weeks late and framed as "Power BI is slow".

Two triggers cover most cases.

1. You crossed a capacity guardrail

Direct Lake enforces per-table limits. On an F64 the guardrails are 5,000 files and 5,000 row groups. Cross either and queries against that table fall back.

Nobody crosses those numbers on purpose. A nightly load using INSERT OVERWRITE, or a streaming job writing small batches, adds files steadily. The table is the same size; the file count is not.

Check before theorising:

DESCRIBE DETAIL silver_events; -- numFiles: 40210 -- sizeInBytes: 96 GB -- ~2.4 MB per file 

Forty thousand files at 2.4 MB each is a compaction problem, not a capacity problem.

OPTIMIZE silver_events VORDER; 

OPTIMIZE bin-compacts the small files into large ones and V-Order applies the read-optimised layout. It lands as a new Delta version, so readers pick it up with no downtime and no rename.

Worth knowing what does not work: moving to an F128 raises the per-table row limit, but the file and row-group guardrails stay at 5,000. You can double the bill and fall back exactly as often.

2. A table points at an unmaterialized SQL view

This one is structural rather than gradual. A Direct Lake partition whose entity is a view rather than a table breaks a condition for staying in Direct Lake, and that table's queries fall back permanently.

{ "name": "Sales", "mode": "directLake", "source": { "type": "entity", "schemaName": "dbo", "entityName": "vw_sales_enriched", "expressionSource": "DatabaseQuery" } } 

expressionSource: DatabaseQuery is not the problem, and it is worth saying so because it looks like one. That is the shared expression pointing Direct Lake partitions at the SQL analytics endpoint; it is how entities are located, not a DirectQuery switch.

The problem is vw_sales_enriched. Write the view's result out as a Delta table and point the entity at that.

Switching the partition to Import also removes the fallback, but it removes Direct Lake with it: you are back to a copy of the data and a refresh window to defend.

Make it loud

If you would rather know than guess, set the model so fallback is not allowed:

DirectLakeBehavior = DirectLakeOnly 

Queries that would have fallen back now fail instead. That sounds worse and is usually better. A broken visual in a test workspace on Tuesday beats a silently slow report in front of the CFO on Friday, and it moves the discovery from your inbox to your pipeline.

The four things to check

  1. numFiles and row groups per table, against the 5,000 guardrails.
  2. OPTIMIZE on a schedule, not run once after somebody complains.
  3. No Direct Lake entity pointing at an unmaterialized view.
  4. DirectLakeOnly in non-production, so fallback surfaces during development.

Fallback is not a bug. It is Direct Lake protecting the query at the cost of the exact thing you chose Direct Lake for, and it will keep doing that quietly until someone measures it.

Both behaviours are documented: Direct Lake overview (capacity guardrails) and How Direct Lake works.

I write DP-600 practice scenarios for a living. This exact case is one of ten free diagnostic questions, no sign-up: https://gyanagent.in/exams/dp-600

原文:https://www.a8q9.cn/en/article/your-direct-lake-report-didn-t-get-slow-it-stopped-being-direct-lake-7b307d.html

相关文章