<?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: How to disable all cache in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-disable-all-cache/m-p/97534#M39499</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/100643"&gt;@MikeGo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It is not clear which cache storage is helping with running your query faster, so the most straightforward way is to reset the sparkContext. Alternatively, these are the three clear cache ways I can think from the top of my head:&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;// Clear all persistent RDDs from memory, you can verify its effectiveness by monitoring the Storage Tab in the Spark UI

spark.sparkContext.getPersistentRDDs.values.foreach(_.unpersist())

// Disable Databricks IO cache as you are currently doing.

spark.conf.set("spark.databricks.io.cache.enabled", false)

// Clear any cached tables or views if that is what its helping

spark.catalog.clearCache()&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 04 Nov 2024 13:23:21 GMT</pubDate>
    <dc:creator>VZLA</dc:creator>
    <dc:date>2024-11-04T13:23:21Z</dc:date>
    <item>
      <title>How to disable all cache</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-disable-all-cache/m-p/92857#M38561</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to test some SQL perf. I run below first&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;spark.conf.set('spark.databricks.io.cache.enabled', False)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;However, the 2nd run for the same query is still way faster than the first time run. Is there a way to make the query start from a clean beginning without any cache?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 06 Oct 2024 05:54:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-disable-all-cache/m-p/92857#M38561</guid>
      <dc:creator>MikeGo</dc:creator>
      <dc:date>2024-10-06T05:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable all cache</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-disable-all-cache/m-p/97534#M39499</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/100643"&gt;@MikeGo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It is not clear which cache storage is helping with running your query faster, so the most straightforward way is to reset the sparkContext. Alternatively, these are the three clear cache ways I can think from the top of my head:&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;// Clear all persistent RDDs from memory, you can verify its effectiveness by monitoring the Storage Tab in the Spark UI

spark.sparkContext.getPersistentRDDs.values.foreach(_.unpersist())

// Disable Databricks IO cache as you are currently doing.

spark.conf.set("spark.databricks.io.cache.enabled", false)

// Clear any cached tables or views if that is what its helping

spark.catalog.clearCache()&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 Nov 2024 13:23:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-disable-all-cache/m-p/97534#M39499</guid>
      <dc:creator>VZLA</dc:creator>
      <dc:date>2024-11-04T13:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable all cache</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-disable-all-cache/m-p/99247#M39937</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/34618"&gt;@VZLA&lt;/a&gt;&amp;nbsp;. How to run&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;spark.sparkContext.getPersistentRDDs.values.foreach(_.unpersist())&lt;/LI-CODE&gt;&lt;P&gt;from databricks notebook?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 21:32:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-disable-all-cache/m-p/99247#M39937</guid>
      <dc:creator>MikeGo</dc:creator>
      <dc:date>2024-11-18T21:32:40Z</dc:date>
    </item>
  </channel>
</rss>

