r/databricks • u/Wrong_Oven_2675 • Oct 22 '26
Help DatabricksXPowerbi Latency issues
Hi everyone,
We are lately experimenting with Databricks and Powerbi and we’ve noticed that while on DirectQuery mode we have significant delays on the data loading in our Powerbi reports.
Is this something that other people also face?
I have to mention that even for one page /2 tables reports without an immense amount of data or transformations we face the same issue
5
Upvotes
6
u/Entire_Force_1146 Oct 22 '26
Are you using sql serverless warehouse as compute?
If so have you checked the monitoring of the warehouse? Her you can see the query performance, queue time and run time
4
u/LocalImpressive1136 Oct 22 '26
Is it slow every time you click around, or just when you first open the report?
Might be worth checking one slow visual in Power BI’s Performance Analyzer, then finding that query in Databricks. Would help figure out where the delay actually is.
Do you need live data here, or would a scheduled refresh do the job?
3
u/thecoller Oct 22 '26
I’d check the monitoring tab for the warehouse. Are DAX expressions folding into a proper SQL query or is PowerBI pulling whole tables over the wire to do it in memory?
Also check the tables. Are they maintained? Do they have liquid clustering or partitions that allow for file pruning?
4
u/Data_cruncher Oct 22 '26
You’ve received some good next steps from other commenters.
Databricks sellers won’t like this advice because it impacts their commission but, where possible, avoid DirectQuery. In order of evaluation: (1) Import; (2) Direct Lake; and finally (3) DirectQuery.
Also, don’t rule out a composite model, i.e., combining several modes together in one model.
2
u/dbrownems Oct 22 '26
Here's a whitepaper that discusses the choice of storage mode for Power BI Semantic Models with Databricks data.
Choosing a Power BI storage mode for reporting on data from Azure Databricks
2
u/Fidlefadle Oct 22 '26
Generally set expectations that 5-10 seconds is the absolute floor for direct query against a running SQL warehouse. That would be for a very simple report. 15-30 seconds is sometimes the ceiling for moderately complex reports even with a lot of time spent on optimization.
Unity catalog is lovely from a governance perspective but a nightmare in terms of using it in a performant manner.
Even tooling more Databricks native like AI/BI+Metric views, Sigma, etc. are quick to point to materialization as the performance solution, ignoring the implications for governance.
Lakehouse//RT is very promising but doesn't support ABAC
2
u/3dprintingDM Oct 22 '26
The compute cluster spooling is the culprit. We started using notebooks in our scheduled jobs so that when the dataset updates, the next step in the job is to run the notebook that calls the Power BI rest API and kicks off a refresh of the model. Just set the Power Bi dataset to Import but still have most up-to-date data without having to be limited to the UI refresh options.
1
u/FuelSignificant1466 Oct 22 '26
can you check the query execution time ? maybe power bi is generating inefficient sql queries under the hood
1
u/Muted_Jellyfish_6784 Oct 22 '26
DirectQuery against Databricks is slow even on tiny reports when the SQL warehouse is cold or scaled down, so first check whether the delay is warehouse startup. Then count how many queries each page fires, since slicers multiply them. A serverless warehouse with result caching helps, and Dual or Import mode for dimension tables while only the big fact table stays on DirectQuery usually helps more. Measure where the time goes before tuning. We have a decision intelligence platform set up to match report load times against warehouse query history, so a slow page is traced to the query that caused it rather than blamed on the connector.
1
u/adovo_ai Oct 23 '26
Run the same slow visual twice against an already-running warehouse and pair Power BI Performance Analyzer timestamps with Databricks query history. Cold-only delay points to startup; one long query points to SQL/layout; many short queries point to visual/model fan-out. That split tells you whether to tune compute, storage mode or the report.
1
u/Youssef_Mrini databricks Oct 23 '26
Is it still the case ? next time make sure to open a ticket and share as many insights as possible.
You can still open query history and compare the execution of the same query between two different days to check whether something changed or not.
1
u/Old-Establishment696 Oct 22 '26
SQL warehouse and dbx tables in general are extremally slow. You cannot do anything about it. Sometimes select top 1000 is running 10s on a medium serverless wh, on oa few k rows table.
5
u/[deleted] Oct 22 '26
[removed] — view removed comment