<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: On Sequences with MongoDB and NoRM</title>
	<atom:link href="http://dllhell.net/2010/07/23/on-sequences-with-mongodb-and-norm/feed/" rel="self" type="application/rss+xml" />
	<link>http://dllhell.net/2010/07/23/on-sequences-with-mongodb-and-norm/</link>
	<description>Write code.  Not too much.  Mostly C#.</description>
	<lastBuildDate>Fri, 23 Mar 2012 18:52:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: jzablocki</title>
		<link>http://dllhell.net/2010/07/23/on-sequences-with-mongodb-and-norm/#comment-205</link>
		<dc:creator>jzablocki</dc:creator>
		<pubDate>Thu, 30 Dec 2010 21:10:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.dllhell.net/index.php/2010/07/23/on-sequences-with-mongodb-and-norm/#comment-205</guid>
		<description>99.9% of the time I&#039;m building apps with Spring.NET, so all of my repositories are treated as singletons.  But I agree with your broader suggestion.  

As for the $inc or findAndModify.  While those achieve similar results, they don&#039;t satisfy the same use cases as a sequence.  For example, with a sequence, I can have a master ID collection that I can use to reserve IDs for data deployment across multiple environments.</description>
		<content:encoded><![CDATA[<p>99.9% of the time I&#8217;m building apps with Spring.NET, so all of my repositories are treated as singletons.  But I agree with your broader suggestion.  </p>
<p>As for the $inc or findAndModify.  While those achieve similar results, they don&#8217;t satisfy the same use cases as a sequence.  For example, with a sequence, I can have a master ID collection that I can use to reserve IDs for data deployment across multiple environments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Froyke</title>
		<link>http://dllhell.net/2010/07/23/on-sequences-with-mongodb-and-norm/#comment-204</link>
		<dc:creator>Froyke</dc:creator>
		<pubDate>Thu, 30 Dec 2010 20:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.dllhell.net/index.php/2010/07/23/on-sequences-with-mongodb-and-norm/#comment-204</guid>
		<description>This solution is problematic for 2 reasons:
1. The sequence repository should be implemented (or used) as Singelton. if not, the lock should be static.
2. This solution cannot be implemented in a multi-servers scenarios.

A better implementation of this concept would be using native atomic MongoDB structs such as $inc or findAndModify</description>
		<content:encoded><![CDATA[<p>This solution is problematic for 2 reasons:<br />
1. The sequence repository should be implemented (or used) as Singelton. if not, the lock should be static.<br />
2. This solution cannot be implemented in a multi-servers scenarios.</p>
<p>A better implementation of this concept would be using native atomic MongoDB structs such as $inc or findAndModify</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jzablocki</title>
		<link>http://dllhell.net/2010/07/23/on-sequences-with-mongodb-and-norm/#comment-164</link>
		<dc:creator>jzablocki</dc:creator>
		<pubDate>Fri, 05 Nov 2010 16:10:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.dllhell.net/index.php/2010/07/23/on-sequences-with-mongodb-and-norm/#comment-164</guid>
		<description>The HiLo shorter IDs are useful, but I still like having the ObjectID for its timestamp.  Might save an extra index in some cases...</description>
		<content:encoded><![CDATA[<p>The HiLo shorter IDs are useful, but I still like having the ObjectID for its timestamp.  Might save an extra index in some cases&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eduardo Campañó</title>
		<link>http://dllhell.net/2010/07/23/on-sequences-with-mongodb-and-norm/#comment-151</link>
		<dc:creator>Eduardo Campañó</dc:creator>
		<pubDate>Fri, 29 Oct 2010 16:14:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dllhell.net/index.php/2010/07/23/on-sequences-with-mongodb-and-norm/#comment-151</guid>
		<description>I&#039;ve just corrected the NoRM wiki because it says that using int you&#039;ll get the key generated but the correct way is using int?. I had the same problem using GUIDs.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just corrected the NoRM wiki because it says that using int you&#8217;ll get the key generated but the correct way is using int?. I had the same problem using GUIDs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Florit</title>
		<link>http://dllhell.net/2010/07/23/on-sequences-with-mongodb-and-norm/#comment-91</link>
		<dc:creator>Gabriel Florit</dc:creator>
		<pubDate>Sun, 05 Sep 2010 07:11:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.dllhell.net/index.php/2010/07/23/on-sequences-with-mongodb-and-norm/#comment-91</guid>
		<description>If you set the id property as int?, MongoDB assigns the key using HiLo, which results in shorter ids:

&lt;code&gt;public int? Id { get; private set; }&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>If you set the id property as int?, MongoDB assigns the key using HiLo, which results in shorter ids:</p>
<p><code>public int? Id { get; private set; }</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

