<?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"
	>
<channel>
	<title>Comments on: Massive Flaw in DataMapper 0.9.6 - Write Once Read Many Many Many Many Many, Im outta space here&#8230;</title>
	<atom:link href="http://blog.vokle.com/index.php/2008/10/30/massive-flaw-in-datamapper-096-write-once-read-many-many-many-many-many-im-outta-space-here/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vokle.com/index.php/2008/10/30/massive-flaw-in-datamapper-096-write-once-read-many-many-many-many-many-im-outta-space-here/</link>
	<description></description>
	<pubDate>Sat, 11 Sep 2010 02:45:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Vokle &#62; DataMapper is Viewable</title>
		<link>http://blog.vokle.com/index.php/2008/10/30/massive-flaw-in-datamapper-096-write-once-read-many-many-many-many-many-im-outta-space-here/#comment-69</link>
		<dc:creator>Vokle &#62; DataMapper is Viewable</dc:creator>
		<pubDate>Fri, 05 Dec 2008 20:53:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vokle.com/?p=87#comment-69</guid>
		<description>[...] when I&#8217;m panicking I&#8217;m a fan of datamapper.  I like how clean it generally makes my code, but I do notice that [...]</description>
		<content:encoded><![CDATA[<p>[...] when I&#8217;m panicking I&#8217;m a fan of datamapper.  I like how clean it generally makes my code, but I do notice that [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory O'Daniel</title>
		<link>http://blog.vokle.com/index.php/2008/10/30/massive-flaw-in-datamapper-096-write-once-read-many-many-many-many-many-im-outta-space-here/#comment-52</link>
		<dc:creator>Cory O'Daniel</dc:creator>
		<pubDate>Sat, 01 Nov 2008 16:47:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vokle.com/?p=87#comment-52</guid>
		<description>Magic spells.  I just woke up from my night of Halloween debauchery (and it was pretty debaucherous) and this bug is fixed.  Mr. Schaefer is what some people would refer to as 'the man'.  Thanks for being on top of this!</description>
		<content:encoded><![CDATA[<p>Magic spells.  I just woke up from my night of Halloween debauchery (and it was pretty debaucherous) and this bug is fixed.  Mr. Schaefer is what some people would refer to as &#8216;the man&#8217;.  Thanks for being on top of this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory O'Daniel</title>
		<link>http://blog.vokle.com/index.php/2008/10/30/massive-flaw-in-datamapper-096-write-once-read-many-many-many-many-many-im-outta-space-here/#comment-51</link>
		<dc:creator>Cory O'Daniel</dc:creator>
		<pubDate>Sat, 01 Nov 2008 01:36:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vokle.com/?p=87#comment-51</guid>
		<description>Cool, its nice to see some light shed on this from somebody that knows the internals of DM</description>
		<content:encoded><![CDATA[<p>Cool, its nice to see some light shed on this from somebody that knows the internals of DM</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernerd Schaefer</title>
		<link>http://blog.vokle.com/index.php/2008/10/30/massive-flaw-in-datamapper-096-write-once-read-many-many-many-many-many-im-outta-space-here/#comment-50</link>
		<dc:creator>Bernerd Schaefer</dc:creator>
		<pubDate>Fri, 31 Oct 2008 23:16:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vokle.com/?p=87#comment-50</guid>
		<description>Cory, I've updated the ticket with some more information.

http://wm.lighthouseapp.com/projects/4819-datamapper/tickets/626-using-fields-causes-datamapper-to-generate-tons-of-queries-in-mysql

For anyone else interested, it turns out this is a much more localized problem than it may have appeared. In IRB, your objects have inspect called on them, which then makes DataMapper try to load any missing attributes. This works great for properties which are declared as :lazy, but the use case for unloaded attributes that aren't lazy (i.e, asking for the name of a user loaded with :fields =&#62; [:id]) hadn't been encountered.

All told, it should be an easy fix for anyone who's got the time.</description>
		<content:encoded><![CDATA[<p>Cory, I&#8217;ve updated the ticket with some more information.</p>
<p><a href="http://wm.lighthouseapp.com/projects/4819-datamapper/tickets/626-using-fields-causes-datamapper-to-generate-tons-of-queries-in-mysql" rel="nofollow">http://wm.lighthouseapp.com/projects/4819-datamapper/tickets/626-using-fields-causes-datamapper-to-generate-tons-of-queries-in-mysql</a></p>
<p>For anyone else interested, it turns out this is a much more localized problem than it may have appeared. In IRB, your objects have inspect called on them, which then makes DataMapper try to load any missing attributes. This works great for properties which are declared as :lazy, but the use case for unloaded attributes that aren&#8217;t lazy (i.e, asking for the name of a user loaded with :fields =&gt; [:id]) hadn&#8217;t been encountered.</p>
<p>All told, it should be an easy fix for anyone who&#8217;s got the time.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
