cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
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.

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!

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.