<?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 should you optimize &amp;lt;1GB delta tables? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-should-you-optimize-lt-1gb-delta-tables/m-p/22409#M15338</link>
    <description>&lt;P&gt;yes&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2022 21:50:40 GMT</pubDate>
    <dc:creator>Hubert-Dudek</dc:creator>
    <dc:date>2022-04-21T21:50:40Z</dc:date>
    <item>
      <title>How should you optimize &lt;1GB delta tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-should-you-optimize-lt-1gb-delta-tables/m-p/22406#M15335</link>
      <description>&lt;P&gt;I have seen the following &lt;A href="https://docs.databricks.com/delta/optimizations/file-mgmt.html" alt="https://docs.databricks.com/delta/optimizations/file-mgmt.html" target="_blank"&gt;documentation &lt;/A&gt;that details how you can work with the OPTIMIZE function to improve storage and querying efficiency.  However, most of the documentation focuses on big data, 10 GB or larger.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with a ~7million row dataset that is 211 MB.  Without any of my intervention, this delta table dataset was split into 70 files.  When I run the OPTIMIZE command on it, it collapses into 1 file.  Did running the OPTIMIZE function help or hurt me in terms of efficiency?  And if it hurt me, what is an alternative method for improving efficiency, particularly with respect to reading/querying?  Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 19:45:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-should-you-optimize-lt-1gb-delta-tables/m-p/22406#M15335</guid>
      <dc:creator>PJ</dc:creator>
      <dc:date>2022-04-21T19:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: How should you optimize &lt;1GB delta tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-should-you-optimize-lt-1gb-delta-tables/m-p/22407#M15336</link>
      <description>&lt;P&gt;Size 100-200 MB is perfect for Spark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding efficiency, it depends on many factors. If you do a lot of filters on some fields, you can add a bloom filter. If your query is by timestamp, ZORDER  will be enough. Suppose your data is queried and divided by some infrequent category that only needs to be imported (for example, finance data ledger for three separate companies). In that case, partitioning per that category is ok, so there will be three files after optimization, for example, 60 MB each (which make sense when we know that only some of the partitions have to be imported).&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 19:57:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-should-you-optimize-lt-1gb-delta-tables/m-p/22407#M15336</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-04-21T19:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How should you optimize &lt;1GB delta tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-should-you-optimize-lt-1gb-delta-tables/m-p/22408#M15337</link>
      <description>&lt;P&gt;Thank you @Hubert Dudek​&amp;nbsp;!! So I gather from your response that it's totally fine to have a delta table that lives under 1 file that's roughly 211 MB.  And I can use OPTIMIZE in conjunction with ZORDER to filter on a frequently filtered, high cardinality field for further query optimization.  Is this all correct?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 20:45:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-should-you-optimize-lt-1gb-delta-tables/m-p/22408#M15337</guid>
      <dc:creator>PJ</dc:creator>
      <dc:date>2022-04-21T20:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: How should you optimize &lt;1GB delta tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-should-you-optimize-lt-1gb-delta-tables/m-p/22409#M15338</link>
      <description>&lt;P&gt;yes&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 21:50:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-should-you-optimize-lt-1gb-delta-tables/m-p/22409#M15338</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-04-21T21:50:40Z</dc:date>
    </item>
  </channel>
</rss>

