<?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: Using GlobalID for a Relationship in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573144#M32470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know using ArcCollector for offline editing, relationships must be based on a GlobalID field.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2016 18:31:53 GMT</pubDate>
    <dc:creator>MitchHolley1</dc:creator>
    <dc:date>2016-09-20T18:31:53Z</dc:date>
    <item>
      <title>Using GlobalID for a Relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573141#M32467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a feature class and a documents table to store the related documents.&amp;nbsp; I want to create a relationship between them and was thinking of using the GlobalID. With a lookup table holding the globalIDs of both.&amp;nbsp; Is it ok to use the GlobalID for this purpose or is it like the ObjectID and liable to change?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advice appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jan 2012 12:13:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573141#M32467</guid>
      <dc:creator>nataliejones1</dc:creator>
      <dc:date>2012-01-29T12:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using GlobalID for a Relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573142#M32468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The main problem with using UUIDs is that they're randomly allocated.&amp;nbsp; This means that when you drive a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;join through them, the index will be an inefficient lookup value.&amp;nbsp; It's not a large deal with small tables but&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;with a very large table it can have a significant cost.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You also need to be careful when copying tables with UUID values, because many of the copy methodologies&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;are likely to assume you want new values in the target table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'd probably be better off using an integer sequence of your own allocation or a base-36 string sequence&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(AAAA-9999 stores 1679616 discrete values in 4 human-readable bytes).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jan 2012 23:07:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573142#M32468</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-01-29T23:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using GlobalID for a Relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573143#M32469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running into a design issue with a database we will be using for offline editing. &amp;nbsp;Contractors want to use a GlobalID and I have put my foot down on not using it. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, after in-depth discussions with my database guys, to create an auto-generated and sequential sequence to use as an ID, it could take forever with all the loops on all the related tables to insert it in and a beast to write. &amp;nbsp;Plus with it being offline, we aren't sure if the stored procedures gets copied over as well and then with 2 or more people&amp;nbsp;collecting data, we will have ID conflicts. &amp;nbsp;If we would always be online editing, I would have no issues with triggers and stored procedures but offline ESRI tends to take the reins and I'm not sure how it will handle it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would love to never use the GlobalID as the relationship key but how can I achieve the custom ID offline without conflicts? &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 17:57:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573143#M32469</guid>
      <dc:creator>JacquelinePursell</dc:creator>
      <dc:date>2016-09-20T17:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using GlobalID for a Relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573144#M32470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know using ArcCollector for offline editing, relationships must be based on a GlobalID field.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 18:31:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573144#M32470</guid>
      <dc:creator>MitchHolley1</dc:creator>
      <dc:date>2016-09-20T18:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using GlobalID for a Relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573145#M32471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very interesting... &amp;nbsp;That makes sense that it should be a GlobalID but it's just like an OID in that you can't overwrite it or preserve it if you needed to swap out the feature itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 22:09:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573145#M32471</guid>
      <dc:creator>JacquelinePursell</dc:creator>
      <dc:date>2016-09-20T22:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using GlobalID for a Relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573146#M32472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;UUIDs have their place; I just try to make sure that I use them appropriately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way to configure non-UUID offline IDs is to assign a core element or element set to a device "AAA-CZZ" for device1, "DAA-FZZ" for device2.&amp;nbsp; Leaving room for expansion is key, but depending on what is being collected, you may want to make the allocation root less obvious -- If you have a reliable time subsystem on the device, then the algorithm could be quite sophisticated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 14:39:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573146#M32472</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2016-09-21T14:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using GlobalID for a Relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573147#M32473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My database guy got me access to a sandbox I can play in. &amp;nbsp;I created a feature class and added a globalID on it and then I ran a very simple update statement to the globalID in SQL Server Management Studio. &amp;nbsp;Voila! &amp;nbsp;As long as the GlobalID isn't NULL you can change it to any ID you want! &amp;nbsp;Even the one you used to have in the database like the old feature! &amp;nbsp;I swapped these all around a few times with no issue!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE Parent&lt;BR /&gt;SET GLOBALID='DE00A00E-A060-0AC4-B555-2DE5B6AF04D4'&lt;BR /&gt;WHERE OBJECTID=2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So even though the front end of ArcGIS is extremely prohibitive and makes the GUID/UUID looks scary, you can easily manipulate this value.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 17:47:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573147#M32473</guid>
      <dc:creator>JacquelinePursell</dc:creator>
      <dc:date>2016-09-23T17:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using GlobalID for a Relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573148#M32474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;As long as the GlobalID isn't NULL you can change it to any ID you want!&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is not completely true, since it can't be NULL and it must be UNIQUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main benefit of the UUID type is the reliable uniqueness aspect, but that reliability&lt;/P&gt;&lt;P&gt;is compromised by assigning values outside the algorithm. &amp;nbsp;So, while you &lt;SPAN style="text-decoration: underline;"&gt;can&lt;/SPAN&gt; set&lt;/P&gt;&lt;P&gt;it to any value, &lt;EM&gt;doing so&lt;/EM&gt; voids the warranty, and makes your organization responsible&lt;/P&gt;&lt;P&gt;for allocation of IDs from that date forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 17:57:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573148#M32474</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2016-09-23T17:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using GlobalID for a Relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573149#M32475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I do know that. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not for some random day when I want to change the IDs for fun. &amp;nbsp;This is for when I want to do a cold swap of a feature but keep the attribute table and the relationships intact. &amp;nbsp;There are so many times in my career when I have had to replace hundreds or thousands of bad shapes for better shapes and because all the databases I've ever encountered had a &amp;nbsp;straightforward user created ID, I was able to preserve this information and swap them out seamlessly. &amp;nbsp;The usage of the GlobalID for a relationship worried me on being able to do this, just like if I used the ObjectID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I need to edit offline with this database and there will be 2+ users at a time in the field and some of them contractors. The GlobalID is so easy to use when editing offline because of the random nature and no user prompt but I really did not want to use it. &amp;nbsp;If I didn't use a Global ID&amp;nbsp;then I would have to create a very intense and complicated stored procedure/trigger that would create the sequential ID I want offline. &amp;nbsp;I don't have the skills for that and we don't have enough money for it either to send it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what kind of "warranty" you are implying... &amp;nbsp;If the GlobalID was untouched and it made a hideous error and destroyed all the data in my database, do you really think ESRI would guarantee to restore it? &amp;nbsp;no, I don't think so. &amp;nbsp;I'm not altering their stored procedures. Also, in ESRI's own help documents is all kinds of backend manipulation of the GlobalID: &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/inserting-a-value-into-a-global-id-column-in-sql-server-using-sql.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/inserting-a-value-into-a-global-id-column-in-sql-server-using-sql.htm"&gt;Inserting a value into a global ID or GUID column in SQL Server using SQL—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;and...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/next-globalid.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/next-globalid.htm"&gt;Next_GlobalID—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 20:59:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573149#M32475</guid>
      <dc:creator>JacquelinePursell</dc:creator>
      <dc:date>2016-09-23T20:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using GlobalID for a Relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573150#M32476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are, of course, few&amp;nbsp;warranties in the software world, and collisions in 128-bit space are possible,&lt;/P&gt;&lt;P&gt;but &lt;A href="https://en.wikipedia.org/wiki/Universally_unique_identifier#Random_UUID_probability_of_duplicates"&gt;very remote&lt;/A&gt;. &amp;nbsp;I'm just pointing out that they're&lt;EM&gt; less&lt;/EM&gt; remote (by many orders of magnitude)&amp;nbsp;if you are&lt;/P&gt;&lt;P&gt;assigning values using two different algorithms (the examples you referenced use the same algorithm&lt;/P&gt;&lt;P&gt;that ArcGIS uses, so they're not likely to conflict).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the only way to meet your requirement, so be it. &amp;nbsp;But I do urge caution (and a UNIQUE index&lt;/P&gt;&lt;P&gt;&lt;EM&gt;and&lt;/EM&gt; robust error handling during assignment)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 21:46:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573150#M32476</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2016-09-23T21:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using GlobalID for a Relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573151#M32477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;You'd probably be better off using an integer sequence of your own allocation or a base-36 string sequence&lt;BR /&gt;(AAAA-9999 stores 1679616 discrete values in 4 human-readable bytes).&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hopefully I'm not derailing this thread too much, but do you have an example of how you would configure the trigger to insert the sequence value into the (versioned) table? We are doing something similar and have issues with sequence values occasionally getting skipped or not changed. We're on 10.2.2 in Oracle 11g.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 16:43:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573151#M32477</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2016-09-28T16:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using GlobalID for a Relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573152#M32478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I could create my own unique index that could do multiple offline devices then I would not feel the need to worry about altering a global ID. &amp;nbsp;I do not have the skills and we don't have the money to hire anyone out for it. &amp;nbsp;I would be more than fine using a user created ID too but we are shifting towards using more contractors to collect data and relying on random people to stay unique isn't possible. &amp;nbsp;Using the GlobalID feels like I'm giving up because it's just too easy to use.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least the scenario I outlined earlier about cold swapping out features is a rare event and it will never be me picking out some random ID, it will always be reusing the old ID to keep the relationships intact. &amp;nbsp;At least the ESRI GlobalID trigger only occurs upon an insert of a new record and I am just updating a record so there is no conflicts there either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you or anyone else has an actual stored procedure built that does what I need, please share it! &amp;nbsp;Even if it was not for SQL Server, it can be easily modified.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 17:00:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573152#M32478</guid>
      <dc:creator>JacquelinePursell</dc:creator>
      <dc:date>2016-09-28T17:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using GlobalID for a Relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573153#M32479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want an example too. &amp;nbsp;I'm giving up and using the GlobalID's because it's too easy but if I had something to go on maybe I could accomplish this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 17:07:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573153#M32479</guid>
      <dc:creator>JacquelinePursell</dc:creator>
      <dc:date>2016-09-28T17:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using GlobalID for a Relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573154#M32480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have read all this post. It was very interesting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To summarize:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;GlobalId: Easy to Use but less performant because of inefficient indexing. There is also a limitation when you need to delete and re-insert a feature. The relationships will be lost.&lt;/LI&gt;&lt;LI&gt;GUID: Same as GlobalId except that you have to create it yourself somehow. However the relationships are not lost when you delete and re-insert a feature.&lt;/LI&gt;&lt;LI&gt;A sequential Id: Efficient index. You need to manage it yourself. Risk of loosing uniqueness especially when created on client side or offline.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I correct? Is there something to correct or to add?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2019 19:34:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-globalid-for-a-relationship/m-p/573154#M32480</guid>
      <dc:creator>MaximeDemers</dc:creator>
      <dc:date>2019-03-07T19:34:34Z</dc:date>
    </item>
  </channel>
</rss>

