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: 

File optimization for delta table (versioning and snapshot ) in storage S3

vinaykumar
New Contributor III

Delta table generates new file for every insert or update on table and keep the old version files also for versioning  and time travel history .

I have 1tb data as delta table and every 30 minutes , 90 percent data getting updated so file size will be getting increase exponentially .

Is there any way to optimize the storage size ( want to keep 1 week time travel history also)

3 REPLIES 3

Ajay-Pandey
Esteemed Contributor III

Hi @vinay kumar​ ,

You can use partitionBy() to partition your data that's help you for data skipping and use vacuum to delete older history from delta tables.

Ajay Kumar Pandey

Yes , but partitionBy will help at some level to skip new file creation - but lets assume 90 percent data getting updated on every load and want to keep the time travel history also.

Anonymous
Not applicable

Hi @vinay kumar​ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

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