<?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 cache on 500 billion rows in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-cache-on-500-billion-rows/m-p/64656#M32617</link>
    <description>&lt;P&gt;can you try with creating a global temp view of the cache?&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2024 13:20:12 GMT</pubDate>
    <dc:creator>-werners-</dc:creator>
    <dc:date>2024-03-26T13:20:12Z</dc:date>
    <item>
      <title>How to cache on 500 billion rows</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-cache-on-500-billion-rows/m-p/64645#M32611</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'm using a server less SQL cluster on Data bricks and I have a dataset on Delta Table that has 500 billion rows. I'm trying to filter to have around 7 billion and the cache that dataset to use it on other queries and make it run faster.&lt;/P&gt;&lt;P&gt;When I cache the table it takes 1s and gives no error/warning.&lt;/P&gt;&lt;P&gt;When I select the cache table it gives and error that cannot be found.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I'm doing:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;CACHE TABLE table_filtered_cache AS select * from prod_datalake.table a
WHERE
a.year &amp;gt;= 2023 etc&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;and then&lt;/P&gt;&lt;LI-CODE lang="python"&gt;select count(*) from table_filtered_cache&lt;/LI-CODE&gt;&lt;P&gt;What am I doing wrong, and what would you advise me to do?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 13:05:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-cache-on-500-billion-rows/m-p/64645#M32611</guid>
      <dc:creator>JoseMacedo</dc:creator>
      <dc:date>2024-03-26T13:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to cache on 500 billion rows</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-cache-on-500-billion-rows/m-p/64656#M32617</link>
      <description>&lt;P&gt;can you try with creating a global temp view of the cache?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 13:20:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-cache-on-500-billion-rows/m-p/64656#M32617</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2024-03-26T13:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to cache on 500 billion rows</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-cache-on-500-billion-rows/m-p/64663#M32620</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;I tried doing like:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CREATE&lt;/SPAN&gt; &lt;SPAN&gt;GLOBAL&lt;/SPAN&gt;&lt;SPAN&gt; TEMPORARY VIEW table_filtered_cache &lt;/SPAN&gt;&lt;SPAN&gt;AS&lt;/SPAN&gt; &lt;SPAN&gt;select&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Got an error&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;"&lt;SPAN&gt;GLOBAL TEMPORARY VIEW is not supported on a SQL warehouse.&lt;/SPAN&gt;"&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 13:37:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-cache-on-500-billion-rows/m-p/64663#M32620</guid>
      <dc:creator>JoseMacedo</dc:creator>
      <dc:date>2024-03-26T13:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to cache on 500 billion rows</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-cache-on-500-billion-rows/m-p/64667#M32621</link>
      <description>&lt;P&gt;I missed the 'serverless sql' part.&amp;nbsp; CACHE is for spark, I don´t think it works for serverless sql.&lt;BR /&gt;&lt;A href="https://docs.databricks.com/en/sql/user/queries/query-caching.html#" target="_self"&gt;Here&lt;/A&gt; is how caching works on DBSQL.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 13:44:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-cache-on-500-billion-rows/m-p/64667#M32621</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2024-03-26T13:44:37Z</dc:date>
    </item>
  </channel>
</rss>

