DirectQuery Performance Progression
So much data, so little budget! Caching data in Power BI gives you the best report performance, but budget constraints usually put downward pressure to stay within lower Power BI Premium premium plans. So, what to do?
- Split large models. Remember that Power BI Premium Gen2 grants each dataset a 25 GB memory quota. I’m actually a big proponent for consolidated organizational semantic models, but this is where best practices meet reality.
- Switch large tables to DirectQuery. When report performance sucks, follow this performance optimization progression:
- Add a columnstore index to the fact table – As VertiPaq, a columnstore index organizes data in columns so aggregate queries should see an immediate performance boost. Detail-level queries, e.g. sales by customer, not so much as they probably won’t hit the index.
- Try hybrid tables when you can get away with a compromise where the latest data can be cached, but archive data left in DirectQuery.
- Try aggregation tables (first automatic, then manual) when you need to speed up aggregate queries at a higher-level grain, such as dashboard queries but leave lower-level queries pass through.
- Pray for mercy to come! Or take the stakeholder out for lunch and insist that the time for some compromise has come…