Forum Discussion

AlexaderMilland's avatar
AlexaderMilland
Helper III
3 years ago
Solved

Direct Query is extremely slow

So I'm trying to build a direct query PowerBI report. My model is EXTREMELY simple with no complex measures yet, however the load time is attrocious. We are talking multiple minutes or "visual has exceeded" on measures that would take milliseconds to complete with imported data. 

 

My model has a product table (30k lines), a orderline table (7 mill lines), a order table (2 mill lines), a date table, and a time table. 

My measures are all just SUMX over the tables for like profits, sales, items sold etc. 

I'm pretty new to direct queries and I'm wondering where to troubleshoot performance.

- The SQL server it's gathering data from has very little extra RAM avaible.

- The SQL server has very few indexes.

- The SQL server is updating data every 5 minuttes (incremental loads from another SQL server)

- I don't think there is relationships on the SQL server, but only in my PBI model.

- There is quite a lot of visualations on the PBI page, 15 unique ones with 1-2 measures each. The SQL server is running 10 queries (some are identical) when i refresh / make a new filtering. 

 

Which of these would you think is a bigger culprit? 


Also would limiting the data inside an SQL view (like limititng the date period) improve performance? Or does it not matter since the view is also just querying on the big underlying table? The visuals would have a limitted date period on them anyway inside PBI

2 Replies