Forum Discussion
Caching queries for re-use
Hi everybody,
I created the following query structure
The query module "importer" is base for further subsequent "linked" query modules
and by doing so I exptected the excel file import only to happen once.
But it seems to me that the excel file importing (~2k files) is happening various times
Is there a way to cache the import within "importer" to speed up the
overall processing time ?
5 Replies
- lbendlinSuper User
Read about Table.Buffer() and Binary.Buffer() . Make sure you have enough RAM.
- MXSvenHelper I
Hi Ibendlin,
I gave it a try as followingbut it did't bring the desired effect.
Still importing all files various times.
Any suggestions ?
- ppm1Solution Sage
Please see this article/video to explain what is going on.
Why Does Power BI Query My Data Source More Than Once? - Chris Webb's BI Blog (crossjoin.co.uk)
Pat
- MXSvenHelper I
thanks.
It helped me, to understand the power query engine in this regard.
".....If you use Table.Buffer inside the Call Web Service query it will indeed buffer the result of the call to the web service into memory, but the data that is buffered cannot be shared between separate query executions..."Unfortunately I wasn't able to find a solution for my problem
- lbendlinSuper User
Use a dataflow or a "golden" dataset that implements your logic once.