<?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: An Identity Mapper in Django (formerly Django Singletons)</title>
	<atom:link href="http://www.davidcramer.net/code/375/singletons-in-django.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.davidcramer.net/code/375/singletons-in-django.html</link>
	<description>A blog about Django, JavaScript, CSS, and general web development.</description>
	<lastBuildDate>Fri, 12 Mar 2010 19:46:01 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tom.</title>
		<link>http://www.davidcramer.net/code/375/singletons-in-django.html/comment-page-1#comment-20529</link>
		<dc:creator>Tom.</dc:creator>
		<pubDate>Tue, 02 Dec 2008 23:47:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=375#comment-20529</guid>
		<description>This sounds wicked! Thanks.</description>
		<content:encoded><![CDATA[<p>This sounds wicked! Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dailycad</title>
		<link>http://www.davidcramer.net/code/375/singletons-in-django.html/comment-page-1#comment-20527</link>
		<dc:creator>dailycad</dc:creator>
		<pubDate>Tue, 02 Dec 2008 21:45:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=375#comment-20527</guid>
		<description>Very useful info.. Thanks..</description>
		<content:encoded><![CDATA[<p>Very useful info.. Thanks..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Cramer</title>
		<link>http://www.davidcramer.net/code/375/singletons-in-django.html/comment-page-1#comment-20526</link>
		<dc:creator>David Cramer</dc:creator>
		<pubDate>Tue, 02 Dec 2008 20:21:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=375#comment-20526</guid>
		<description>Ah if you are correct then I will be renaming the project. I haven&#039;t done much research (in terminology), but had assumed it was correct via the ticket on Django.</description>
		<content:encoded><![CDATA[<p>Ah if you are correct then I will be renaming the project. I haven&#39;t done much research (in terminology), but had assumed it was correct via the ticket on Django.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steingrim</title>
		<link>http://www.davidcramer.net/code/375/singletons-in-django.html/comment-page-1#comment-20524</link>
		<dc:creator>Steingrim</dc:creator>
		<pubDate>Tue, 02 Dec 2008 20:10:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=375#comment-20524</guid>
		<description>I think calling this Singletons is quite misleading. The Singleton Pattern is used to enforce a single instance of a class; not a single instance of a business entity. Identity Map is the correct naming but note Fowler&#039;s emphasis on using one Identity Map per transaction.</description>
		<content:encoded><![CDATA[<p>I think calling this Singletons is quite misleading. The Singleton Pattern is used to enforce a single instance of a class; not a single instance of a business entity. Identity Map is the correct naming but note Fowler&#39;s emphasis on using one Identity Map per transaction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Cramer</title>
		<link>http://www.davidcramer.net/code/375/singletons-in-django.html/comment-page-1#comment-20523</link>
		<dc:creator>David Cramer</dc:creator>
		<pubDate>Tue, 02 Dec 2008 19:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=375#comment-20523</guid>
		<description>Personally, I plan to use it throughout the codebase to prevent some data issues. The one area this doesn&#039;t affect right now (due to complications we had with it at Curse) is serialization. It will ignore the instance caching when you unserialize objects (such as from the cache).</description>
		<content:encoded><![CDATA[<p>Personally, I plan to use it throughout the codebase to prevent some data issues. The one area this doesn&#39;t affect right now (due to complications we had with it at Curse) is serialization. It will ignore the instance caching when you unserialize objects (such as from the cache).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Cramer</title>
		<link>http://www.davidcramer.net/code/375/singletons-in-django.html/comment-page-1#comment-20522</link>
		<dc:creator>David Cramer</dc:creator>
		<pubDate>Tue, 02 Dec 2008 19:31:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=375#comment-20522</guid>
		<description>I think per query is a bit out of scope for what I want to achieve. Doing this would require the queryset/manager to be aware (to some extent) of the singleton model. This wouldn&#039;t quite achieve the same performance benefit.&lt;br&gt;&lt;br&gt;The biggest thing about this, while it IS an obvious performance boost, its not the sole intention of the project. Having unique instances of an object in memory can solve a lot of other issues as well.</description>
		<content:encoded><![CDATA[<p>I think per query is a bit out of scope for what I want to achieve. Doing this would require the queryset/manager to be aware (to some extent) of the singleton model. This wouldn&#39;t quite achieve the same performance benefit.</p>
<p>The biggest thing about this, while it IS an obvious performance boost, its not the sole intention of the project. Having unique instances of an object in memory can solve a lot of other issues as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Toriel</title>
		<link>http://www.davidcramer.net/code/375/singletons-in-django.html/comment-page-1#comment-20521</link>
		<dc:creator>Sam Toriel</dc:creator>
		<pubDate>Tue, 02 Dec 2008 16:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=375#comment-20521</guid>
		<description>^^ My questions exactly</description>
		<content:encoded><![CDATA[<p>^^ My questions exactly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Hudson</title>
		<link>http://www.davidcramer.net/code/375/singletons-in-django.html/comment-page-1#comment-20520</link>
		<dc:creator>Rob Hudson</dc:creator>
		<pubDate>Tue, 02 Dec 2008 16:42:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=375#comment-20520</guid>
		<description>Could there be a way to enable this per query?  In your example, it&#039;s obvious that creating only one instance per category is optimal, but are there cases where it may not be what you want?</description>
		<content:encoded><![CDATA[<p>Could there be a way to enable this per query?  In your example, it&#39;s obvious that creating only one instance per category is optimal, but are there cases where it may not be what you want?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tcdavis</title>
		<link>http://www.davidcramer.net/code/375/singletons-in-django.html/comment-page-1#comment-20518</link>
		<dc:creator>tcdavis</dc:creator>
		<pubDate>Tue, 02 Dec 2008 14:21:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=375#comment-20518</guid>
		<description>So, two questions.&lt;br&gt;&lt;br&gt;1.  Per your explanation, it wasn&#039;t strictly necessary to define Article as a SingleModel, correct?&lt;br&gt;&lt;br&gt;2.  Given the obvious benefits, are there any reasons not to use this class for all models?  Am I missing something crucial here?</description>
		<content:encoded><![CDATA[<p>So, two questions.</p>
<p>1.  Per your explanation, it wasn&#39;t strictly necessary to define Article as a SingleModel, correct?</p>
<p>2.  Given the obvious benefits, are there any reasons not to use this class for all models?  Am I missing something crucial here?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
