<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Disabling query caching for SQL Warehouse in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/disabling-query-caching-for-sql-warehouse/m-p/3489#M525</link>
    <description>&lt;P&gt;besides caching, are you sure the queries execute a different query plan?&lt;/P&gt;&lt;P&gt;I'd think (not sure though) that if you stop the warehouse, the cache gets cleared.  Perhaps that is useable?&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2023 08:16:45 GMT</pubDate>
    <dc:creator>-werners-</dc:creator>
    <dc:date>2023-06-07T08:16:45Z</dc:date>
    <item>
      <title>Disabling query caching for SQL Warehouse</title>
      <link>https://community.databricks.com/t5/data-engineering/disabling-query-caching-for-sql-warehouse/m-p/3488#M524</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently trying to run some performance tests on queries in Databricks on Azure. For my tests, I am using a &lt;B&gt;Classic SQL Warehouse in the SQL Editor&lt;/B&gt;. &lt;/P&gt;&lt;P&gt;I have created &lt;B&gt;two views that contain the same data&lt;/B&gt; but have different structure -&amp;gt; I am trying to see if those different structures affect query performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;My issue: &lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To test the performance I am running similiar queries that result in the same output for the individual views. Caching of course screws with the results as the output is fully cached from the previous query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;I have tried to do the following things already&lt;/B&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SET use_cached_result = false; -&amp;gt; Does not impact my query caching unfortunately&lt;/LI&gt;&lt;LI&gt;CLEAR CACHE; -&amp;gt; Does not work on SQL Warehouses&lt;/LI&gt;&lt;LI&gt;spark.conf.set("spark.databricks.io.cache.enabled", "false") -&amp;gt; Also doesnt impact the query caching&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the caching structure of databricks I guess I need to disable the UI Cache, but I can't find any information on how to do so. Does anybody know how to solve my problem?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 07:39:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/disabling-query-caching-for-sql-warehouse/m-p/3488#M524</guid>
      <dc:creator>Marvin_T</dc:creator>
      <dc:date>2023-06-07T07:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling query caching for SQL Warehouse</title>
      <link>https://community.databricks.com/t5/data-engineering/disabling-query-caching-for-sql-warehouse/m-p/3489#M525</link>
      <description>&lt;P&gt;besides caching, are you sure the queries execute a different query plan?&lt;/P&gt;&lt;P&gt;I'd think (not sure though) that if you stop the warehouse, the cache gets cleared.  Perhaps that is useable?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 08:16:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/disabling-query-caching-for-sql-warehouse/m-p/3489#M525</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-06-07T08:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling query caching for SQL Warehouse</title>
      <link>https://community.databricks.com/t5/data-engineering/disabling-query-caching-for-sql-warehouse/m-p/3490#M526</link>
      <description>&lt;P&gt;They are probably executing the same query plan now that you say it. And yes, restarting the warehouse does theoretically works but it isnt a nice solution.&lt;/P&gt;&lt;P&gt;I guess I will do some restarting and build averages to have a good comparison for now&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 08:38:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/disabling-query-caching-for-sql-warehouse/m-p/3490#M526</guid>
      <dc:creator>Marvin_T</dc:creator>
      <dc:date>2023-06-07T08:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling query caching for SQL Warehouse</title>
      <link>https://community.databricks.com/t5/data-engineering/disabling-query-caching-for-sql-warehouse/m-p/122797#M46871</link>
      <description>&lt;P&gt;Just restarting the warehouse (or using a different one) does not solve the problem for me.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/70760"&gt;@Marvin_T&lt;/a&gt;&amp;nbsp; does it work for you?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 11:09:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/disabling-query-caching-for-sql-warehouse/m-p/122797#M46871</guid>
      <dc:creator>TessinPeter</dc:creator>
      <dc:date>2025-06-25T11:09:31Z</dc:date>
    </item>
  </channel>
</rss>

