Forum Discussion

joost_romijn's avatar
joost_romijn
Regular Visitor
7 years ago

Direct Query unstable performance

Hi guys,


I've been having really unstable performance when using Direct Query. I have searched and read a lot of documentation about Direct Query and I am still not sure what is causing this unstable performance.


I have optimized and simplified all my DAX expressions, Power Query logic and even tested the dashboard with only a few objects. I have upgraded the underlaying Azure SQL database source. Still, the performance is very dynamic within either one configuration.


After a lot of tracing and using the new Performance Analyzer in Power BI I have found the following.


Sometimes the performance of the dashboard is good. All the objects in the dashboard are loaded withinin 1,500 miliseconds according to the Performance Analyzer. Sometimes the performance of the dashboard is slow, taking up to 20,000 miliseconds to load all objects in the dashboard within the same configuration.


In SQL Profiler I see that when the performance is slow, Power BI is logging all sorts of Notifications. It looks like PBI makes a new connection for every Direct Query it fires to the database. When the performance is good, within the same session, this is not the case.

 

See attached images for clarification.

 

Is there anyone that knows what causes these new connections or what these messages mean?


Best regards,

Joost Romijn

 

 

5 Replies