<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Guid vs Integer IDs</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Guid vs Integer IDs</description>
  <pubDate>Sat, 11 Apr 2026 11:54:46 -700</pubDate>
  <lastBuildDate>Fri, 11 Jan 2013 13:38:15 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3882</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Guid vs Integer IDs : OK, thanks very much for your...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3882&amp;PID=15562#15562</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 3882<br /><strong>Posted:</strong> 11-Jan-2013 at 1:38pm<br /><br />OK, thanks very much for your insight!<br /><br />Greg]]>
   </description>
   <pubDate>Fri, 11 Jan 2013 13:38:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3882&amp;PID=15562#15562</guid>
  </item> 
  <item>
   <title>Guid vs Integer IDs : Yes, I have had issues with entity...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3882&amp;PID=15560#15560</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 3882<br /><strong>Posted:</strong> 11-Jan-2013 at 1:02pm<br /><br />Yes, I have had issues with entity sandboxing and merging entities back that have been saved and such. The keyservice eliminated these issues.]]>
   </description>
   <pubDate>Fri, 11 Jan 2013 13:02:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3882&amp;PID=15560#15560</guid>
  </item> 
  <item>
   <title>Guid vs Integer IDs : Yes, but have you actually had...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3882&amp;PID=15556#15556</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 3882<br /><strong>Posted:</strong> 11-Jan-2013 at 9:55am<br /><br />Yes, but have you actually had any issues with using an Identity column? I have used them in the past with db's that didn't have an identity column, but it seems the present incarnation of DevForce handles the id fixups just fine.  I have never had any issues with it so am reluctant to change :)]]>
   </description>
   <pubDate>Fri, 11 Jan 2013 09:55:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3882&amp;PID=15556#15556</guid>
  </item> 
  <item>
   <title>Guid vs Integer IDs : Greg,I&amp;#039;ve built a key service...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3882&amp;PID=15554#15554</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 3882<br /><strong>Posted:</strong> 11-Jan-2013 at 8:56am<br /><br />Greg,<br><br>I've built a key service in my project that my factories use when creating an entity. It will call a method on the server and allocate an integer key, rather than using identity columns it will use a key table. SQL Server 2012 also offers sequences which would do something similar.&nbsp; If I think I am going to be creating many entities in succession I can request a range of keys to use.<br><br>Something like that might help you if you don't want to use GUIDs.<br>]]>
   </description>
   <pubDate>Fri, 11 Jan 2013 08:56:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3882&amp;PID=15554#15554</guid>
  </item> 
  <item>
   <title>Guid vs Integer IDs : OK, good points.  Once thing I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3882&amp;PID=15552#15552</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 3882<br /><strong>Posted:</strong> 10-Jan-2013 at 4:40pm<br /><br />OK, good points.  Once thing I have seen to mitigate the second point is a field called RowGuid which is just a guid, but it doesn't get sent over the wire.  I am already too deep in the project to change at this point, but at least I know the choices better.<br /><br />Greg]]>
   </description>
   <pubDate>Thu, 10 Jan 2013 16:40:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3882&amp;PID=15552#15552</guid>
  </item> 
  <item>
   <title>Guid vs Integer IDs :   Database generated Ids violate...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3882&amp;PID=15551#15551</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3882<br /><strong>Posted:</strong> 10-Jan-2013 at 4:28pm<br /><br />Database generated Ids violate a fundamental principal of an entity, which says the identity of an entity should never change over its lifecycle. With store generated Ids, the entity gets a temporary id on the client until it is saved and it's identity changes at that point. You will find that to be a headache when building more complex applications. You can't uniquely identify an entity across&nbsp;contexts while it has a temporary id unless you define some sort of an additional business key. <div>&nbsp;</div><div>In larger systems, Guids also allow for uniquely identityfing things across multiple data stores. That's a very common challenge in larger enterprise systems with multiple datasources.</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 10 Jan 2013 16:28:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3882&amp;PID=15551#15551</guid>
  </item> 
  <item>
   <title>Guid vs Integer IDs : One thing I notice that TempHire...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3882&amp;PID=15550#15550</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 3882<br /><strong>Posted:</strong> 10-Jan-2013 at 3:53pm<br /><br />One thing I notice that TempHire uses regularly is a Guid for the ID of an Entity as opposed to an int generated by SqlServer.<br /><br />I have used both, but I tend to favor the int mainly due to the much smaller size, and thus, it's a lot faster to send over the wire.<br /><br />For example, if you have a Contact with 10 phone numbers, the guids alone are the large part of sending the data over the wire.  Multiply that by 100 contacts and the metadata is far larger then the actual data.<br /><br />I do like the fact that a guid is generated on the client and so you don't have to requery after an initial save.  But in my mine, the advantages of the integer key outweigh the advantages of the Guid.<br /><br />Buy I am wondering if I am missing something as I see so many examples which stick to the Guid despite the larger size.<br /><br />Greg<br /><br />]]>
   </description>
   <pubDate>Thu, 10 Jan 2013 15:53:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3882&amp;PID=15550#15550</guid>
  </item> 
 </channel>
</rss>