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.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now