<?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 How to Improve performance of Model Builder? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-improve-performance-of-model-builder/m-p/320732#M24919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created Models in Model Builder. this basically does below things.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Field Calculation to prepare relevant data.&lt;/LI&gt;&lt;LI&gt;Spatial Join to compute Statistics.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-fareast-language: EN-US; font-size: 11.0pt; line-height: 107%; font-family: 'Calibri','sans-serif'; mso-hansi-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin;"&gt;Applies Spatial filters.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-fareast-language: EN-US; font-size: 11.0pt; line-height: 107%; font-family: 'Calibri','sans-serif'; mso-hansi-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin;"&gt;&lt;STRONG style="font-size: 11pt; line-height: 107%;"&gt;Create Summary&amp;nbsp; data.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-fareast-language: EN-US; font-size: 11.0pt; line-height: 107%; font-family: 'Calibri','sans-serif'; mso-hansi-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin;"&gt;Please find the screenshot of the Model and sample Toolbox..&lt;IMG alt="model1.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/120514_model1.png" style="width: 620px; height: 168px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-fareast-language: EN-US; font-size: 11.0pt; line-height: 107%; font-family: 'Calibri','sans-serif'; mso-hansi-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin;"&gt;In all these steps It takes&amp;nbsp; around 4 hours.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-fareast-language: EN-US; font-size: 11.0pt; line-height: 107%; font-family: 'Calibri','sans-serif'; mso-hansi-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin;"&gt;Is it possible that If I write this same model in&amp;nbsp; Python and then execute, It will take less time to execute?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-fareast-language: EN-US; font-size: 11.0pt; line-height: 107%; font-family: 'Calibri','sans-serif'; mso-hansi-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin;"&gt;or is there any other way, through which I can improve the performance of this?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-fareast-language: EN-US; font-size: 11.0pt; line-height: 107%; font-family: 'Calibri','sans-serif'; mso-hansi-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin;"&gt;I have such 7 models.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ravindra Singh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;Field Calculation to prepare relevant data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2015 10:39:33 GMT</pubDate>
    <dc:creator>RavindraSingh</dc:creator>
    <dc:date>2015-08-04T10:39:33Z</dc:date>
    <item>
      <title>How to Improve performance of Model Builder?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-improve-performance-of-model-builder/m-p/320732#M24919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created Models in Model Builder. this basically does below things.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Field Calculation to prepare relevant data.&lt;/LI&gt;&lt;LI&gt;Spatial Join to compute Statistics.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-fareast-language: EN-US; font-size: 11.0pt; line-height: 107%; font-family: 'Calibri','sans-serif'; mso-hansi-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin;"&gt;Applies Spatial filters.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-fareast-language: EN-US; font-size: 11.0pt; line-height: 107%; font-family: 'Calibri','sans-serif'; mso-hansi-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin;"&gt;&lt;STRONG style="font-size: 11pt; line-height: 107%;"&gt;Create Summary&amp;nbsp; data.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-fareast-language: EN-US; font-size: 11.0pt; line-height: 107%; font-family: 'Calibri','sans-serif'; mso-hansi-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin;"&gt;Please find the screenshot of the Model and sample Toolbox..&lt;IMG alt="model1.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/120514_model1.png" style="width: 620px; height: 168px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-fareast-language: EN-US; font-size: 11.0pt; line-height: 107%; font-family: 'Calibri','sans-serif'; mso-hansi-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin;"&gt;In all these steps It takes&amp;nbsp; around 4 hours.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-fareast-language: EN-US; font-size: 11.0pt; line-height: 107%; font-family: 'Calibri','sans-serif'; mso-hansi-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin;"&gt;Is it possible that If I write this same model in&amp;nbsp; Python and then execute, It will take less time to execute?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-fareast-language: EN-US; font-size: 11.0pt; line-height: 107%; font-family: 'Calibri','sans-serif'; mso-hansi-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin;"&gt;or is there any other way, through which I can improve the performance of this?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-fareast-language: EN-US; font-size: 11.0pt; line-height: 107%; font-family: 'Calibri','sans-serif'; mso-hansi-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin;"&gt;I have such 7 models.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ravindra Singh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;Field Calculation to prepare relevant data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 10:39:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-improve-performance-of-model-builder/m-p/320732#M24919</guid>
      <dc:creator>RavindraSingh</dc:creator>
      <dc:date>2015-08-04T10:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Improve performance of Model Builder?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-improve-performance-of-model-builder/m-p/320733#M24920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I havn't looked in any detail (or at all really...) at your model, but there are many opportunities to improve processing rates by using python / arcpy. Anywhere between X10 &amp;amp; X100 is achievable.&lt;/P&gt;&lt;P&gt;Use in memory workspaces, da cursors, python dictionaries to manipulate data, run from a python ide etc etc.&lt;/P&gt;&lt;P&gt;It all depends on what your purpose is. If I just want to do some quick manipulation which I might want to run a couple of times to get the workflow right, then model builder is the way. For something more speedy and controllable, being able to get exactly what I want then I write python code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 11:42:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-improve-performance-of-model-builder/m-p/320733#M24920</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2015-08-04T11:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Improve performance of Model Builder?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-improve-performance-of-model-builder/m-p/320734#M24921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've had a look at your model. One thing that would have improved performance is to ensure all your datasets have spatial indices but as all your data were file geodatabase feature classes you are already doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing particularly leaped out at me as performance blocking steps which leads me to ask about your data. You do not actually say anything about it? Is it millions of polygons or just a few thousand that are horribly multi-part? In a part of your model you are selecting and sorting then sub-selecting multiple times, if you are doing this on a table with 10,000,000 rows then the time taken is not surprising.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whilst &lt;A href="https://community.esri.com/migrated-users/5327"&gt;Neil Ayres&lt;/A&gt;​ is a good route to go for improving performance you'll be taking your work out of the model builder environment which is something you may not want to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to give more information about your data and it's context.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 09:40:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-improve-performance-of-model-builder/m-p/320734#M24921</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2015-08-05T09:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to Improve performance of Model Builder?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-improve-performance-of-model-builder/m-p/320735#M24922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To point out a small example of the suggestions by &lt;A href="https://community.esri.com/migrated-users/5327"&gt;Neil Ayres&lt;/A&gt; : in your model as you already indicated you perform 4 field calculations. In each field calculation it loops through the entire featureclass. When using the arcpy.da.UpdateCursor this step can be done in a single loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be tempting to export the model to Python, but in some (read "most") cases it might be more efficient to start programming from scratch instead of correcting the spaghetti code resulting from the export...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 11:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-improve-performance-of-model-builder/m-p/320735#M24922</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-08-05T11:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to Improve performance of Model Builder?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-improve-performance-of-model-builder/m-p/320736#M24923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Guys for prompt response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding my Data:&amp;nbsp; As of now I am using FileGeodatabase. But ultimately, I will be using this model using data in ArcSDE With Oracle Database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I will write this model in python and then I will compare the performance of both model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all of you for expert input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravindra Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 04:21:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-improve-performance-of-model-builder/m-p/320736#M24923</guid>
      <dc:creator>RavindraSingh</dc:creator>
      <dc:date>2015-08-06T04:21:29Z</dc:date>
    </item>
  </channel>
</rss>

