<?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: Azure SQL Database with ArcGIS Enterprise 10.9.1 - Query option with MAXDOP 1 when default SQL Instance MAXDOP = 8 in ArcGIS Enterprise in the cloud Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/azure-sql-database-with-arcgis-enterprise-10-9-1/m-p/1323929#M652</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/130147" target="_self"&gt;&lt;SPAN class=""&gt;AntheaTung&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class=""&gt;, I am glad to assist. Thanks, Marcelo &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2023 15:19:09 GMT</pubDate>
    <dc:creator>MarceloMarques</dc:creator>
    <dc:date>2023-08-30T15:19:09Z</dc:date>
    <item>
      <title>Azure SQL Database with ArcGIS Enterprise 10.9.1 - Query option with MAXDOP 1 when default SQL Instance MAXDOP = 8</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/azure-sql-database-with-arcgis-enterprise-10-9-1/m-p/1323670#M649</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are using Azure SQL Database with ArcGIS Enterprise 10.9.1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Azure Portal, we noted in the Database Performance Overview, there are some long running queries.&amp;nbsp; Picked one of the long running queries and here is the SQL:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(@P1&amp;nbsp;&lt;/SPAN&gt;&lt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lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;br__.GDB_IS_DELETE&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;br__.SHAPE.Filter(@P3)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;OPTION&amp;nbsp;(RECOMPILE,&amp;nbsp;MAXDOP&amp;nbsp;1&lt;/STRONG&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;By default Azure SQL Database is set to use MAXDOP 8.&amp;nbsp; The Query above is recompiled with MAXDOP = 1. The above Query is coming from ArcGIS Pro usingbranch versioning via REST service.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Questions: &lt;/SPAN&gt;&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Is MAXDOP = 1 the best setting for overall performance for all transactions?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Where is the Query hint with Recompile&amp;nbsp;option injected from?&amp;nbsp;&amp;nbsp;In ArcGIS Pro?&amp;nbsp; In REST API?&amp;nbsp;&amp;nbsp;or in a stored procedure in ArcSDE?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Anthea&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 Aug 2023 20:42:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/azure-sql-database-with-arcgis-enterprise-10-9-1/m-p/1323670#M649</guid>
      <dc:creator>AntheaTung</dc:creator>
      <dc:date>2023-08-29T20:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Azure SQL Database with ArcGIS Enterprise 10.9.1 - Query option with MAXDOP 1 when default SQL Instance MAXDOP = 8</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/azure-sql-database-with-arcgis-enterprise-10-9-1/m-p/1323690#M650</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/130147"&gt;@AntheaTung&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;BUG-000151624 - Add MAXDOP 1 to all branch versioned queries that do not have a spatial or attribute-provided query filter.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;"Disabling parallelism reduces contention on cpu resources is not intended for OLTP style queries which should perform well when executed in a serialized fashion."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The fix for this Bug was first introduced in &lt;STRONG&gt;Nov/09/2022&lt;/STRONG&gt;, see list of cumulative Patches below.&lt;/P&gt;&lt;P&gt;ArcGIS Server Map and Feature Service Security 2023 Update 1 Patch - Aug/22/2023&lt;BR /&gt;&lt;A href="https://support.esri.com/en-us/patches-updates/2023/arcgis-server-map-and-feature-service-security-2023-update-1-patch" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/patches-updates/2023/arcgis-server-map-and-feature-service-security-2023-update-1-patch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Server 10.9.1 Utility Network and Data Management Patch 5 - July/07/2023&lt;BR /&gt;&lt;A href="https://support.esri.com/en-us/patches-updates/2023/arcgis-server-10-9-1-utility-network-and-data-management-patch-5" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/patches-updates/2023/arcgis-server-10-9-1-utility-network-and-data-management-patch-5&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Server 10.9.1 Utility Network and Data Management Patch 4 - Feb/27/2023&lt;BR /&gt;&lt;A href="https://support.esri.com/en-us/patches-updates/2023/arcgis-server-10-9-1-utility-network-and-data-management-patch-4-8089" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/patches-updates/2023/arcgis-server-10-9-1-utility-network-and-data-management-patch-4-8089&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Server 10.9.1 Utility Network and Data Management Patch 3 - &lt;STRONG&gt;Nov/09/2022&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="https://support.esri.com/en-us/patches-updates/2022/arcgis-server-10-9-1-utility-network-and-data-managemen-8077" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/patches-updates/2022/arcgis-server-10-9-1-utility-network-and-data-managemen-8077&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en-us/search?cardtype=patches+and+updates&amp;amp;product=arcgis+server&amp;amp;s=Relevance&amp;amp;version=10%252E9%252E1&amp;amp;product=arcgis+utility+network" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/search?cardtype=patches+and+updates&amp;amp;product=arcgis+server&amp;amp;s=Relevance&amp;amp;version=10%252E9%252E1&amp;amp;product=arcgis+utility+network&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please, if you are experiencing performance&amp;nbsp;issues with &lt;STRONG&gt;ArcGIS Enterprise 10.9.1&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Azure SQL Database ArcGIS Geodatabase 10.9.1&lt;/EM&gt;&lt;/STRONG&gt; then open a ticket with Esri Technical Support to investigate the problem further.&lt;BR /&gt;&lt;BR /&gt;I hope this clarifies your question.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 21:44:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/azure-sql-database-with-arcgis-enterprise-10-9-1/m-p/1323690#M650</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2023-08-29T21:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Azure SQL Database with ArcGIS Enterprise 10.9.1 - Query option with MAXDOP 1 when default SQL Instance MAXDOP = 8</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/azure-sql-database-with-arcgis-enterprise-10-9-1/m-p/1323877#M651</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7880"&gt;@MarceloMarques&lt;/a&gt;&amp;nbsp; thanks you so much for the helpful information above ! The above Query was from Prod and we have ArcGIS ServerUN patch 3 applied.&amp;nbsp; It does not look like the patch is resolving the MAXDOP issue for us.&lt;/P&gt;&lt;P&gt;Will log a ticket with Support.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;Anthea&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 30 Aug 2023 13:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/azure-sql-database-with-arcgis-enterprise-10-9-1/m-p/1323877#M651</guid>
      <dc:creator>AntheaTung</dc:creator>
      <dc:date>2023-08-30T13:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Azure SQL Database with ArcGIS Enterprise 10.9.1 - Query option with MAXDOP 1 when default SQL Instance MAXDOP = 8</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/azure-sql-database-with-arcgis-enterprise-10-9-1/m-p/1323929#M652</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/130147" target="_self"&gt;&lt;SPAN class=""&gt;AntheaTung&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class=""&gt;, I am glad to assist. Thanks, Marcelo &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 15:19:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/azure-sql-database-with-arcgis-enterprise-10-9-1/m-p/1323929#M652</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2023-08-30T15:19:09Z</dc:date>
    </item>
  </channel>
</rss>

