<?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 Arcpy 'Append_management' much slower than ArcMap Tool? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-append-management-much-slower-than-arcmap/m-p/213441#M16442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data in a file geodatabase feature class that I am appending to a feature class in an enterprise geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;P&gt;(assume variables are assigned and existing. Arcpy and Time are imported)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;start_time = time.clock()&lt;BR /&gt;arcpy.Append_management(local_fc_path, sde_fc_path, "NO_TEST")&lt;BR /&gt;elapsed_time = (time.clock() - start_time)&lt;BR /&gt;print "Append Took {}".format(elapsed_time)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This takes 1105.675 seconds (over 18 minutes) for 138 features. In practice, no matter how many rows are in the source table, it takes about this much time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running the append in the Python interpreter in ArcMap 10.2.1 for the same 138 features takes .94 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When doing the same thing in ArcMap 10.2.1 using the Append tool from the Data Management toolbox, with the same parameters and same 138 features, it takes 1.03 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any explanation for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2019 19:58:43 GMT</pubDate>
    <dc:creator>JosephKlasnic</dc:creator>
    <dc:date>2019-07-19T19:58:43Z</dc:date>
    <item>
      <title>Arcpy 'Append_management' much slower than ArcMap Tool?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-append-management-much-slower-than-arcmap/m-p/213441#M16442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data in a file geodatabase feature class that I am appending to a feature class in an enterprise geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;P&gt;(assume variables are assigned and existing. Arcpy and Time are imported)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;start_time = time.clock()&lt;BR /&gt;arcpy.Append_management(local_fc_path, sde_fc_path, "NO_TEST")&lt;BR /&gt;elapsed_time = (time.clock() - start_time)&lt;BR /&gt;print "Append Took {}".format(elapsed_time)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This takes 1105.675 seconds (over 18 minutes) for 138 features. In practice, no matter how many rows are in the source table, it takes about this much time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running the append in the Python interpreter in ArcMap 10.2.1 for the same 138 features takes .94 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When doing the same thing in ArcMap 10.2.1 using the Append tool from the Data Management toolbox, with the same parameters and same 138 features, it takes 1.03 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any explanation for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 19:58:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-append-management-much-slower-than-arcmap/m-p/213441#M16442</guid>
      <dc:creator>JosephKlasnic</dc:creator>
      <dc:date>2019-07-19T19:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy 'Append_management' much slower than ArcMap Tool?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-append-management-much-slower-than-arcmap/m-p/213442#M16443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you run the tool it's from and to the same source and target?&amp;nbsp; That does seem odd to take 18 minutes for less than 150 records.&amp;nbsp;Using version 10.2 is running on borrowed time; you really should consider upgrading.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 20:28:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-append-management-much-slower-than-arcmap/m-p/213442#M16443</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2019-07-19T20:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy 'Append_management' much slower than ArcMap Tool?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-append-management-much-slower-than-arcmap/m-p/213443#M16444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Yes it is the same exact source and target. And I understand that 10.2.1 is old and we have plans to upgrade, but for the time being need to run this using 10.2.1. I can also find other instances (using different feature classes but the same SDE conection to the same enterprise geodatabase) that do not take this long.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2019 19:28:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-append-management-much-slower-than-arcmap/m-p/213443#M16444</guid>
      <dc:creator>JosephKlasnic</dc:creator>
      <dc:date>2019-07-22T19:28:57Z</dc:date>
    </item>
  </channel>
</rss>

