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!

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