cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How often should I run vaccuum command?

Anonymous
Not applicable
 
1 ACCEPTED SOLUTION

Accepted Solutions

User16783855117
Contributor II
It really depends on your business intentions! You can remove files no longer referenced by a Delta table and are older than the retention threshold by running the vacuum command on the table. vacuum is not triggered automatically. The default retention threshold for the files is 7 days.
The main reason I recommend VACUUM-ing is for compliance and to reduce storage costs. If you need to remove older copies of the date for compliance, I would VACUUM as quickly as processing is complete to ensure the records are removed. To manage storage costs, you will need to balance the cost of keeping older copies of data with the storage cost for them, and that is dependent on each use case.

View solution in original post

1 REPLY 1

User16783855117
Contributor II
It really depends on your business intentions! You can remove files no longer referenced by a Delta table and are older than the retention threshold by running the vacuum command on the table. vacuum is not triggered automatically. The default retention threshold for the files is 7 days.
The main reason I recommend VACUUM-ing is for compliance and to reduce storage costs. If you need to remove older copies of the date for compliance, I would VACUUM as quickly as processing is complete to ensure the records are removed. To manage storage costs, you will need to balance the cost of keeping older copies of data with the storage cost for them, and that is dependent on each use case.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group