Forum Discussion

AbiNyk's avatar
AbiNyk
Advocate I
1 year ago
Solved

Best Practice storage when using both sql and notebooks - warehouse or parquet

Hi,   I need to do some logic using stored procedures and afterwards notebooks consuming the resultSets.    Since it is not easy to call stored procedures from a notebook (Fabric Data Warehouse c...
  • frithjof_v's avatar
    1 year ago

    "i thought of making my stored procedure logic directly in the Lakehouse using notebooks as a kind of stored procedures (Spark SQL), and then invoking these whenever needed.

     

    But i am unsure if this is a good idea?"

     

    I think this is a good idea. Use Spark SQL and Lakehouse with Delta Table. Just try and see if it can solve your need. If it does, then I think this is the most efficient technology and a recommended way.

     

    Please share if you stumble upon some specific roadblockers.

     

    Remember to run OPTIMIZE and VACUUM at suitable intervals. In many cases, running OPTIMIZE and VACUUM once per day is a general okay solution. Depending on how often you make updates to the data tables.