Forum Discussion

bw_chec's avatar
bw_chec
Helper I
2 years ago
Solved

Data Lakehouse Modelling Q

Wanting some clarity on how I am modelling my medallion lakehouse.   I have a source system MySQL server with many tables, with rows that are often modified (think accumulating snapshot). This is n...
  • AndyDDC's avatar
    AndyDDC
    2 years ago

    I don't know whether using copy activity with a delta table enabled for CDF will work, something to test for sure.  And yes, if there is a big bulk movement of data, CDF isn't really going to be much use anyway.

     

    IMHO you won't need to use Type 2 in the raw/cleansed layer (I assume you mean slowly changing dimension?) as you can handle this further down the pipeline in your dimensional model.  You need to be able to identify the changed records to then apply appropriate transformation downstream.

     

    I think the crux here is to be able to incrementally load from the MySQL box, if this isn't possible then I don't know any other way you could identify changed records other than to bulk load the data into Fabric Lakehouse, then work out what's changed by using date/time stamps.  Possibly store the lastupdated timestamp in a custom metadata table in the lakehouse for each table, then when you bulk load into the raw layer, query each table using this timestamp and only load the changed rows into the silver layer.

     

    A blog on CDF if any of it helps in this situation...

    Delta Lake Change Data Feed in Fabric Lakehouses (serverlesssql.com)