Forum Discussion

p_da's avatar
p_da
Helper I
1 year ago
Solved

Lakehouse SQL endpoint

Hi all,

 

I have a quick question. I know that MS is already on track of the current issue with Lakehouse where SQL endpoint is taking some time to sync the metadata with lakehouse. Does we have any ETA when it will be fixed ? The delay in the lakehouse sql endpoint make it useless, as it sometimes take a lot of time. 

 

Thanks

  • AlexanderPowBI's avatar
    AlexanderPowBI
    1 year ago

    As my issue is ETL / pipeline related, neither of that helps. 

    What I did now as a soloution until MS releases the API which frithjof_v mentions, is to use the "unsupported script" to update SQL endpoints written by somone at MSFT found here: 

    github 

    What I did, if someone is interested to:

    1. Rewrote the script to be a bit more robust, with some error handling etc. 
    2. Created it as a wheel, uploaded in a shared lakehouse, call it "own modules". 
    3. Shortcuted into "own modules" in every lakehouse where a notebook updates the data & a sql endpoint needs a refresh.
    4. At end of each notebook which updates lakehouses, i run the script with error handling & logging, so if the unsupported APIs in the script gets changed/stops working, it won't affect the pipeline run, but I will know from logs. 
    5. Wait for the official API to come. 

    Best regards,

    Alexander

10 Replies

Replies have been turned off for this discussion
  • Hi,

    I was about to create a topic on what I believe is a similar issue.

    In my pipeline, I have an audit step that utilizes SQL endpoints for auditing. However, these checks often fail falsely because the queries seem to be based on outdated data. They do not reflect updates that have just occurred in the pipeline. For example, if Table X initially has 100 records and the pipeline inserts 50 more, the table count still shows 100 instead of 150.

     

    I believe this is related to the issue being discussed. Is the only solution coming up the one refered about API update trigger? 

     

    //Alexander

    • V-yubandi-msft's avatar
      V-yubandi-msft
      Community Support

      Hi AlexanderPowBI ,

      Thanks for bringing this up. It looks like the issue you're facing is related to the ongoing delay in SQL Endpoint metadata sync in Lakehouse.  As mentioned earlier, SQL Endpoints may take a bit of time to reflect recent changes, which can lead to outdated query results.

       

      Here are a couple of alternative approaches that might help.

      •  If you're using Power BI, switching to Direct Lake mode can bypass SQL Endpoints and provide you with near real-time data access.

      • Instead of relying only on SQL Endpoints, consider querying your Lakehouse data using Notebooks or the Lakehouse REST API to get the most up-to-date results.

      Hope this helps! If you need any further clarification, feel free to ask.

      If my response solved your query, please mark it as the Accepted solution to help others find it easily!

      And if my answer was helpful, I'd really appreciate a 'Kudos'.

       

      • AlexanderPowBI's avatar
        AlexanderPowBI
        Resolver I

        As my issue is ETL / pipeline related, neither of that helps. 

        What I did now as a soloution until MS releases the API which frithjof_v mentions, is to use the "unsupported script" to update SQL endpoints written by somone at MSFT found here: 

        github 

        What I did, if someone is interested to:

        1. Rewrote the script to be a bit more robust, with some error handling etc. 
        2. Created it as a wheel, uploaded in a shared lakehouse, call it "own modules". 
        3. Shortcuted into "own modules" in every lakehouse where a notebook updates the data & a sql endpoint needs a refresh.
        4. At end of each notebook which updates lakehouses, i run the script with error handling & logging, so if the unsupported APIs in the script gets changed/stops working, it won't affect the pipeline run, but I will know from logs. 
        5. Wait for the official API to come. 

        Best regards,

        Alexander

    • V-yubandi-msft's avatar
      V-yubandi-msft
      Community Support

      Hi p_da ,

      AlexanderPowBI  shared a potential workaround. If possible, please review the response and give it a try to see if it resolves the issue


      Thank You.

  • V-yubandi-msft's avatar
    V-yubandi-msft
    Community Support

    Hi p_da ,

    Thank you for reaching out to the Microsoft Fabric community.

     

    We are aware that the SQL Endpoint problem is impacting your work. Instead, we recommend using the Direct Lake.

    Direct Lake enables the handling of large amounts of data efficiently. It loads delta tables stored as Parquet files in One Lake, the single storage for analytics data, into memory quickly. Thereafter, direct queries on its semantic model deliver high-performance queries. Direct Lake thereby eliminates slow, expensive data imports. This results in fast loading of data with frequent and quick refresh operations and optimizes capacity resources efficiently.

    For more details, please refer to the attached official Microsoft documentation on Direct Lake. It provides comprehensive information to address your queries.

    Link: Direct Lake overview - Microsoft Fabric | Microsoft Learn.

    If my answer addressed your query, kindly mark it as the Accepted Solution to assist others.

    I'd also be grateful for a 'Kudos' if you found my response useful!   

     

    • V-yubandi-msft's avatar
      V-yubandi-msft
      Community Support

      Hi p_da ,

      We noticed we haven't received a response from you yet, so we wanted to follow up and ensure the solution we provided addressed your issue. If you require any further assistance or have additional questions, please let us know.

      Your feedback is valuable to us, and we look forward to hearing from you soon.

       

      Thank You.

  • V-yubandi-msft's avatar
    V-yubandi-msft
    Community Support

    Hi p_da ,

    As we haven’t heard back from you, we wanted to kindly follow up to check if the solution we provided for your issue worked for you  or let us know if you need any further assistance?

    Your feedback is important to us, Looking forward to your response. 

     

    Thank You.

  • V-yubandi-msft's avatar
    V-yubandi-msft
    Community Support

    Hi p_da ,

     

    we wanted to check in as we haven't heard back from you. Did our solution work for you? If you need any more help, please don't hesitate to ask. Your feedback is very important to us. We hope to hear from you soon.

     

    Thank You.