<?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: Update a File Geodatabase using an SQL Join in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/update-a-file-geodatabase-using-an-sql-join/m-p/506923#M28725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jake -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the suggestion on update cursors.&amp;nbsp;&amp;nbsp; I tried this (within ArcObjects) and it worked, but it wasn't so fast.&amp;nbsp;&amp;nbsp; Maybe you were suggesting using python. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At any rate, I didn't have a lot of time to futz so I created a dictionary linking the old key to the new key then updated by class using look-ups to the dictionary.&amp;nbsp; Maybe a little more effort than I was expecting, but it works and works quite fast over a large number of rows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for the suggestion!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ed&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jan 2013 21:38:05 GMT</pubDate>
    <dc:creator>EdwardBlair</dc:creator>
    <dc:date>2013-01-07T21:38:05Z</dc:date>
    <item>
      <title>Update a File Geodatabase using an SQL Join</title>
      <link>https://community.esri.com/t5/data-management-questions/update-a-file-geodatabase-using-an-sql-join/m-p/506921#M28723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got a file geodatabase on which I need to perform a mass update through a join.&amp;nbsp; I could do this through a cursor, but there are millons of row to update and the process would take quite a while.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I were to do this in a Personal Geodatabase I would drop into Access, create the following query and execute it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Update GasServiceOrder, GasService&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set GasServiceOrder.GasServiceObjectID = GasService.ObjectID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where GasServiceOrder.OldKey = GasService.OldKey&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works fine and quickly in Access.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A similar syntax executed within IWorkspace.ExecuteSQL() returns a syntax error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions would be much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ed Blair&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 23:18:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/update-a-file-geodatabase-using-an-sql-join/m-p/506921#M28723</guid>
      <dc:creator>EdwardBlair</dc:creator>
      <dc:date>2013-01-05T23:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Update a File Geodatabase using an SQL Join</title>
      <link>https://community.esri.com/t5/data-management-questions/update-a-file-geodatabase-using-an-sql-join/m-p/506922#M28724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ed,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you using ArcGIS 10.1?&amp;nbsp; If you are, you can use the new &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/What_is_the_data_access_module/018w00000008000000/"&gt;data access&lt;/A&gt;&lt;SPAN&gt; module.&amp;nbsp; Using arcpy.da.UpdateCursor is &lt;/SPAN&gt;&lt;STRONG&gt;much&lt;/STRONG&gt;&lt;SPAN&gt; faster than the regular arcpy.UpdateCursor.&amp;nbsp; A thread found &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/74292-SPEED-da.UpdateCursor-vs.-field-calculation?highlight=field+calculator+update"&gt;here&lt;/A&gt;&lt;SPAN&gt; shows a user was able to update half a billion records in one hour with the arcpy.da.UpdateCursor.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 10:25:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/update-a-file-geodatabase-using-an-sql-join/m-p/506922#M28724</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-01-07T10:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Update a File Geodatabase using an SQL Join</title>
      <link>https://community.esri.com/t5/data-management-questions/update-a-file-geodatabase-using-an-sql-join/m-p/506923#M28725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jake -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the suggestion on update cursors.&amp;nbsp;&amp;nbsp; I tried this (within ArcObjects) and it worked, but it wasn't so fast.&amp;nbsp;&amp;nbsp; Maybe you were suggesting using python. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At any rate, I didn't have a lot of time to futz so I created a dictionary linking the old key to the new key then updated by class using look-ups to the dictionary.&amp;nbsp; Maybe a little more effort than I was expecting, but it works and works quite fast over a large number of rows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for the suggestion!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ed&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 21:38:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/update-a-file-geodatabase-using-an-sql-join/m-p/506923#M28725</guid>
      <dc:creator>EdwardBlair</dc:creator>
      <dc:date>2013-01-07T21:38:05Z</dc:date>
    </item>
  </channel>
</rss>

