Forum Discussion
Power BI runs query multiple times on backend?
Hi,
I have had numerous email converstaions and an actual call last Friday abou this.
In my case we are using Big Query and apparently by design PBI will run a query twice once for metadat and then for the actual data.
However the problem comes when you use an ODBC driver to connect ( I am using Simba as advised by Google) this then multiples the running of a query up by anothe two times so in all at least 4 times the query will run, inmy case it runs a query anything up to 6 times .
I ran a test and the query runs multiple times if you make amends in power query , just openeing the PBIX file. Just seting up the PBIX adding a conditional column in PQ aloing with a custom column closing reopening and refreshing in total a simple query ran 22 times in all...not good.
We have pushed back to t hem now to sort out, theu did suggest to use there Big Query API but the problem is it runs the whole tables in and even if you set up views in Big Query it brings them in stages so back to multiple queries.
Its back with them now :(
Anonymous do you have any updates on this? We are running into a similar issue but ours is with an Azure Managed Instance.
- Anonymous5 years agoNot applicable
We are having the same problem. We run a complicated query with multiple joins. We're connecting to a Vertica DB running on AWS. We connect via ODBC. Running the query multiple times (concurrently!) means that the data base runs out of memory. It also costs us money unnecessarily.