Forum Discussion

frithjof_v's avatar
frithjof_v
Community Champion
2 years ago
Solved

Delta table maintenance - is it managed?

Hi,   Is delta table maintenance managed by Fabric?   Does Fabric do managed vacuuming of my Lakehouse tables (behind the scenes)?   Or will my Lakehouse delta tables be accumulating all table ...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi frithjof_v 

    Yes, you’re correct in your understanding of the differences between Lakehouse and Data Warehouse in terms of time travel retention and vacuuming.

    Lakehouse:
    In Lakehouse, the vacuuming process is part of the Table Maintenance feature. This feature includes the Vacuum operation, which removes old files no longer referenced by a Delta table log. The files need to be older than the retention threshold, and the default file retention threshold is seven days.
    Use table maintenance feature to manage delta tables in Fabric - Microsoft Fabric | Microsoft Learn

    If you don’t run any maintenance, the Lakehouse tables will keep accumulating all the data until the Vacuum operation is executed. So, if you don’t choose to run vacuuming, then the Lakehouse tables will never be vacuumed. 

    Data Warehouse:
    In Data Warehouse, the data retention for time travel queries is seven days. This is a limit across the OneLake for the entire Fabric. You can’t change it as of now. Therefore, Data Warehouse will be limited to 7 days time travel, and Fabric automatically performs the vacuuming without you being able to control it.
    Time travel in Warehouse within Microsoft Fabric (preview) - Microsoft Fabric | Microsoft Learn

    Hope this helps. Please let me know if you have any further questions.