<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Shortcut of mirrored database won't update in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-of-mirrored-database-won-t-update/m-p/4638485#M8408</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1253577" data-lia-user-login="felicial" class="lia-mention lia-mention-user"&gt;felicial&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can access the mirrored database directly from notebooks using Spark SQL queries&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;df = spark.sql("SELECT * FROM YourMirroredDatabase.YourTable")&lt;BR /&gt;display(df)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This approach will give you latest data.&lt;SPAN&gt;with a typical latency of up to 60 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally both Shortcut and mirrored DB should provide the same infomation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Apr 2025 14:26:26 GMT</pubDate>
    <dc:creator>nilendraFabric</dc:creator>
    <dc:date>2025-04-04T14:26:26Z</dc:date>
    <item>
      <title>Shortcut of mirrored database won't update</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-of-mirrored-database-won-t-update/m-p/4637896#M8404</link>
      <description>&lt;P&gt;I created a Cosmos DB for NoSQL account and container and enabled mirroring.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I created a shortcut to run a Notebook on my data.&lt;/P&gt;&lt;P&gt;I add new data to Cosmos DB and thhe mirror upadtes. However, the shortcut won't. I need to recreate it everytime to get new data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two questions:&lt;/P&gt;&lt;P&gt;1) Why do I have to create a shortcut instead of running the Notebook over the mirrored database?&lt;/P&gt;&lt;P&gt;2) Why won't it update?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 08:48:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-of-mirrored-database-won-t-update/m-p/4637896#M8404</guid>
      <dc:creator>felicial</dc:creator>
      <dc:date>2025-04-04T08:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Shortcut of mirrored database won't update</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-of-mirrored-database-won-t-update/m-p/4638260#M8406</link>
      <description>&lt;P&gt;Hell0&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1253577" data-lia-user-login="felicial" class="lia-mention lia-mention-user"&gt;felicial&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Fabric Forum Community.&lt;/P&gt;
&lt;P&gt;the shortcut doesn't dynamically update when new data is added or mirrored in your Cosmos DB. this might be due to shortcut is using cached data or The data refresh mechanism isn't properly configured to reflect updates in real-time&lt;BR /&gt;&lt;BR /&gt;to avoid recreating shortcuts in your Cosmos DB integration with notebooks. check below resources to track changes to your data and let me know if this helps?&lt;BR /&gt;The Change Feed feature(&lt;A href="https://learn.microsoft.com/en-us/azure/cosmos-db/change-feed" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/cosmos-db/change-feed&lt;/A&gt;) in Cosmos DB allows you to listen for changes in your Cosmos DB container and process new or updated data in real-time. This is useful when you want to track and handle changes automatically.&lt;BR /&gt;Using the Change Feed, you can continuously stream new data from Cosmos DB into your notebook environment without needing to manually recreate any shortcuts.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If this information is helpful, please “Accept it as a solution” and give a "kudos" to assist other community members in resolving similar issues more efficiently.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 12:18:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-of-mirrored-database-won-t-update/m-p/4638260#M8406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-04T12:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Shortcut of mirrored database won't update</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-of-mirrored-database-won-t-update/m-p/4638270#M8407</link>
      <description>&lt;P&gt;Hi Prasannag,&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My intention is to use the mirroring feature in Fabric, which relies on the continous backup of Cosmos DB and not the change feed. I am trying to build the Notebook in Fabric.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What options are there for "data refresh mechanisms"? I thought it was automatic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 12:29:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-of-mirrored-database-won-t-update/m-p/4638270#M8407</guid>
      <dc:creator>felicial</dc:creator>
      <dc:date>2025-04-04T12:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Shortcut of mirrored database won't update</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-of-mirrored-database-won-t-update/m-p/4638485#M8408</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1253577" data-lia-user-login="felicial" class="lia-mention lia-mention-user"&gt;felicial&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can access the mirrored database directly from notebooks using Spark SQL queries&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;df = spark.sql("SELECT * FROM YourMirroredDatabase.YourTable")&lt;BR /&gt;display(df)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This approach will give you latest data.&lt;SPAN&gt;with a typical latency of up to 60 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally both Shortcut and mirrored DB should provide the same infomation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 14:26:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-of-mirrored-database-won-t-update/m-p/4638485#M8408</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-04-04T14:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Shortcut of mirrored database won't update</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-of-mirrored-database-won-t-update/m-p/4638508#M8409</link>
      <description>&lt;P&gt;Thanks, I will try using the Notebook directly on the mirror. The shortcut won't update...&lt;/P&gt;&lt;P&gt;Will post the results. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 14:33:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-of-mirrored-database-won-t-update/m-p/4638508#M8409</guid>
      <dc:creator>felicial</dc:creator>
      <dc:date>2025-04-04T14:33:08Z</dc:date>
    </item>
  </channel>
</rss>

