Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Snowflake - disable cache (USE_CACHED_RESULT = FALSE)?

Hi!

 

I'm trying to test true performance of a report and wondering it it's possible to disable Snowflake cache in Power BI connection -> USE_CACHED_RESULT = FALSE?

 

https://docs.snowflake.net/manuals/sql-reference/parameters.html#use-cached-result

 

Couldn't figure out how disabling cache could be included in query if it's possible at all...

 

let
Source = Snowflake.Databases("****.west-europe.azure.snowflakecomputing.com", "****_WH", []),
****_Database = Source{[Name="****_DB",Kind="Database"]}[Data],
****_Schema = ****_Database{[Name="****",Kind="Schema"]}[Data],
****_Table = ****_Schema{[Name="****",Kind="Table"]}[Data]
in
****_Table

 

BR,

Mika Kouvo

3 REPLIES 3
Anonymous
Not applicable

You can’t change it directly through PowerBI, but as a work-around, you can change the default setting of the user account attached to PowerBI in Snowflake with:

 

ALTER ACCOUNT SET USE_CACHED_RESULT = FALSE

 

Make sure you are in the right context as you have to be an ACCOUNTADMIN to change these settings.

 

Check that the changes worked with:

 

SHOW PARAMETERS

 

Be careful with this though, remember to turn on USE_CACHED_RESULT after you’re done your testing.

 

Hope this helped!

v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi Mika,

 

It seems we can't do that within a connection. 

1. As we can see from your link, it's a server-side parameter. "Can be set for Account » User » Session".

2. The Snowflake connector is based on Snowflake ODBC Driver. As we can see from #connection-parameters, no such connection string can be sent through ODBC connection.

 

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-jiascu-msft 

 

Is this still a limitation with the new connector that was release for Snowflake? We would like to use the Query_tag option with the Line 

ALTER SESSION SET QUERY_TAG = 'Workspace name - Report name';

However, we've been unable to get this to work. Leveraging the query_tag option within the query would allow us to allocate Snowflake costs to the workspace/report level. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.