<?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 Primary Key Alternatives in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/primary-key-alternatives/m-p/872588#M6310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;This subject has been discussed in many posts before but my intention is to discuss use cases and what kind of solutions has been developed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;Integration of ArcGIS with a third party application. There seem to be four alternatives for "primary key" to set up a relation without creating relationship classes. OBJECTID, GLOBALID, GUID and an integer field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;The least stable is OBJECTID. As it's pretty hard to preserve the values. And also it's not suggested in the technical documents.&lt;/SPAN&gt;&lt;SUP style="color: #3d3d3d;"&gt;1&lt;/SUP&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;The second option is GLOBALID which is suggested by Esri and seems to be most used.&lt;SUP&gt;2 &lt;/SUP&gt;However, there are some possibilities of change on GLOBALID values.&lt;SUP&gt;3&lt;/SUP&gt; Besides, in an ArcGIS blog post, it's not recommended to use them as unique identifiers.&lt;SUP&gt;4&lt;/SUP&gt; I know that this post is a bit old but, I couldn't find any newer information to replace it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;GUID seems to be the strongest option as they never change in any data transfer scenario. Plus, this option is suggested in the same blog post for unique identifiers. What we need to do is create a structure of sequence-triggers to generate the values. This option is also suggested in &lt;A _jive_internal="true" href="https://community.esri.com/thread/77254"&gt;Alternative to ObjectID as Primary Key for Related Tables&lt;/A&gt; by Vince Angelo. As he mentioned GUID's can cause performance issues on joins.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;So here comes the latest option. Creating an integer field. If I'm going to create sequences and triggers what GUID type will provide me&amp;nbsp;rather than an integer type?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P&gt;1: “No, it is not recommended to use ObjectIDs when joining a table in ArcMap.” &lt;A href="https://support.esri.com/en/technical-article/000012462"&gt;https://support.esri.com/en/technical-article/000012462&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2: " Developers can use them in relationships or in any application requiring globally unique identifiers." - &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/geodatabases/arcgis-field-data-types.htm#GUID-97064FAE-B42E-4DC3-A5C9-9A6F12D053A8"&gt;http://desktop.arcgis.com/en/arcmap/10.3/manage-data/geodatabases/arcgis-field-data-types.htm#GUID-97064FAE-B42E-4DC3-A5C9-9A6F12D053A8&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3: &lt;A href="https://support.esri.com/en/technical-article/000010889"&gt;https://support.esri.com/en/technical-article/000010889&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4: "This should not be used for a Unique ID. These values can change if you have to reload the data at some point or if you drop the Global ID field and re-add it. " &lt;A href="https://blogs.esri.com/esri/arcgis/2009/09/28/guids-as-ids/"&gt;https://blogs.esri.com/esri/arcgis/2009/09/28/guids-as-ids/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2018 15:20:07 GMT</pubDate>
    <dc:creator>Tevfik_ÇağrıDural1</dc:creator>
    <dc:date>2018-02-27T15:20:07Z</dc:date>
    <item>
      <title>Primary Key Alternatives</title>
      <link>https://community.esri.com/t5/geodatabase-questions/primary-key-alternatives/m-p/872588#M6310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;This subject has been discussed in many posts before but my intention is to discuss use cases and what kind of solutions has been developed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;Integration of ArcGIS with a third party application. There seem to be four alternatives for "primary key" to set up a relation without creating relationship classes. OBJECTID, GLOBALID, GUID and an integer field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;The least stable is OBJECTID. As it's pretty hard to preserve the values. And also it's not suggested in the technical documents.&lt;/SPAN&gt;&lt;SUP style="color: #3d3d3d;"&gt;1&lt;/SUP&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;The second option is GLOBALID which is suggested by Esri and seems to be most used.&lt;SUP&gt;2 &lt;/SUP&gt;However, there are some possibilities of change on GLOBALID values.&lt;SUP&gt;3&lt;/SUP&gt; Besides, in an ArcGIS blog post, it's not recommended to use them as unique identifiers.&lt;SUP&gt;4&lt;/SUP&gt; I know that this post is a bit old but, I couldn't find any newer information to replace it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;GUID seems to be the strongest option as they never change in any data transfer scenario. Plus, this option is suggested in the same blog post for unique identifiers. What we need to do is create a structure of sequence-triggers to generate the values. This option is also suggested in &lt;A _jive_internal="true" href="https://community.esri.com/thread/77254"&gt;Alternative to ObjectID as Primary Key for Related Tables&lt;/A&gt; by Vince Angelo. As he mentioned GUID's can cause performance issues on joins.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;So here comes the latest option. Creating an integer field. If I'm going to create sequences and triggers what GUID type will provide me&amp;nbsp;rather than an integer type?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P&gt;1: “No, it is not recommended to use ObjectIDs when joining a table in ArcMap.” &lt;A href="https://support.esri.com/en/technical-article/000012462"&gt;https://support.esri.com/en/technical-article/000012462&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2: " Developers can use them in relationships or in any application requiring globally unique identifiers." - &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/geodatabases/arcgis-field-data-types.htm#GUID-97064FAE-B42E-4DC3-A5C9-9A6F12D053A8"&gt;http://desktop.arcgis.com/en/arcmap/10.3/manage-data/geodatabases/arcgis-field-data-types.htm#GUID-97064FAE-B42E-4DC3-A5C9-9A6F12D053A8&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3: &lt;A href="https://support.esri.com/en/technical-article/000010889"&gt;https://support.esri.com/en/technical-article/000010889&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4: "This should not be used for a Unique ID. These values can change if you have to reload the data at some point or if you drop the Global ID field and re-add it. " &lt;A href="https://blogs.esri.com/esri/arcgis/2009/09/28/guids-as-ids/"&gt;https://blogs.esri.com/esri/arcgis/2009/09/28/guids-as-ids/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 15:20:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/primary-key-alternatives/m-p/872588#M6310</guid>
      <dc:creator>Tevfik_ÇağrıDural1</dc:creator>
      <dc:date>2018-02-27T15:20:07Z</dc:date>
    </item>
  </channel>
</rss>

