<?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 VACUUM during read/write in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/vacuum-during-read-write/m-p/25215#M17507</link>
    <description>&lt;P&gt;Is it safe to run VACUUM on a Delta Lake table while data is being added to it at the same time?&amp;nbsp; Will it impact the job result/performance?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jun 2021 21:49:06 GMT</pubDate>
    <dc:creator>User16783853906</dc:creator>
    <dc:date>2021-06-10T21:49:06Z</dc:date>
    <item>
      <title>VACUUM during read/write</title>
      <link>https://community.databricks.com/t5/data-engineering/vacuum-during-read-write/m-p/25215#M17507</link>
      <description>&lt;P&gt;Is it safe to run VACUUM on a Delta Lake table while data is being added to it at the same time?&amp;nbsp; Will it impact the job result/performance?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 21:49:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/vacuum-during-read-write/m-p/25215#M17507</guid>
      <dc:creator>User16783853906</dc:creator>
      <dc:date>2021-06-10T21:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: VACUUM during read/write</title>
      <link>https://community.databricks.com/t5/data-engineering/vacuum-during-read-write/m-p/25216#M17508</link>
      <description>&lt;P&gt;If you are running VACUUM with a very short retention interval, old snapshots and uncommitted files can still be in use by concurrent readers or writers to the table and this could result in concurrent readers to fail or tables getting corrupted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delta Lake has a safety check spark.databricks.delta.retentionDurationCheck.enabled set to true by default to prevent you from running a dangerous&amp;nbsp; vacuum&amp;nbsp;command .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More details could be found here. &lt;A href="https://docs.databricks.com/delta/delta-utility.html#remove-files-no-longer-referenced-by-a-delta-table" target="test_blank"&gt;https://docs.databricks.com/delta/delta-utility.html#remove-files-no-longer-referenced-by-a-delta-table&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From a performance point of you, to ensure that it is not affecting the other running jobs, you could run it in a job cluster&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 19:06:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/vacuum-during-read-write/m-p/25216#M17508</guid>
      <dc:creator>sajith_appukutt</dc:creator>
      <dc:date>2021-06-17T19:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: VACUUM during read/write</title>
      <link>https://community.databricks.com/t5/data-engineering/vacuum-during-read-write/m-p/25217#M17509</link>
      <description>&lt;P&gt;In the vast majority of cases, yes, it is safe to run VACUUM while data is concurrently being appended or updated to the same table. This is because VACUUM deletes data files no longer referenced by a Delta table's transaction log and does not effect the current snapshot that data is being operated on by other processes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you will want to be careful if you're specifying a shorter-than-default retention period or if you have streams that run very infrequently.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 21:26:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/vacuum-during-read-write/m-p/25217#M17509</guid>
      <dc:creator>User16783853906</dc:creator>
      <dc:date>2021-06-23T21:26:03Z</dc:date>
    </item>
  </channel>
</rss>

