<?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: ActiveRecord Optimization with Scrooge</title>
	<atom:link href="http://www.igvita.com/2009/02/27/activerecord-optimization-with-scrooge/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.igvita.com/2009/02/27/activerecord-optimization-with-scrooge/</link>
	<description>A goal is a dream with a deadline.</description>
	<pubDate>Mon, 15 Mar 2010 23:48:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matías</title>
		<link>http://www.igvita.com/2009/02/27/activerecord-optimization-with-scrooge/comment-page-1/#comment-175047</link>
		<dc:creator>Matías</dc:creator>
		<pubDate>Fri, 06 Mar 2009 12:18:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=210#comment-175047</guid>
		<description>Nice idea!
;-)</description>
		<content:encoded><![CDATA[<p>Nice idea!<br />
;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lourens</title>
		<link>http://www.igvita.com/2009/02/27/activerecord-optimization-with-scrooge/comment-page-1/#comment-174808</link>
		<dc:creator>Lourens</dc:creator>
		<pubDate>Thu, 05 Mar 2009 15:54:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=210#comment-174808</guid>
		<description>@Ed,

Scrooge integrates seamlessly with your test suite.

See the :track and :scope subsections under Strategies in the README.The track strategy dumps a YAML representation of all data gathered to config/scrooge/scopes/* when the process exits.

The workflow would be :

* Set strategy to :track for your test environment

* Run your functionals and / or integrations

* Commit changes to config/scrooge/scopes to your SCM ( not ideal practice, but this being work in progress ... )

* Scope in production to the signature from your latest track run, either through the configuration file or setting ENV['scope'], which is more Capistrano friendly etc.

This was the initial track of thought as per http://github.com/methodmissing/scrooge/commit/a94a86fe77fa7c27f88c5edfe35a2bd8e14d3f4d , but sadly the state of test coverage for most apps leaves much to be desired.Ilya helped shape thinking away from that.

- Lourens</description>
		<content:encoded><![CDATA[<p>@Ed,</p>
<p>Scrooge integrates seamlessly with your test suite.</p>
<p>See the :track and :scope subsections under Strategies in the README.The track strategy dumps a YAML representation of all data gathered to config/scrooge/scopes/* when the process exits.</p>
<p>The workflow would be :</p>
<p>* Set strategy to :track for your test environment</p>
<p>* Run your functionals and / or integrations</p>
<p>* Commit changes to config/scrooge/scopes to your SCM ( not ideal practice, but this being work in progress &#8230; )</p>
<p>* Scope in production to the signature from your latest track run, either through the configuration file or setting ENV['scope'], which is more Capistrano friendly etc.</p>
<p>This was the initial track of thought as per <a href="http://github.com/methodmissing/scrooge/commit/a94a86fe77fa7c27f88c5edfe35a2bd8e14d3f4d" rel="nofollow">http://github.com/methodmissing/scrooge/commit/a94a86fe77fa7c27f88c5edfe35a2bd8e14d3f4d</a> , but sadly the state of test coverage for most apps leaves much to be desired.Ilya helped shape thinking away from that.</p>
<p>- Lourens</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed Spencer</title>
		<link>http://www.igvita.com/2009/02/27/activerecord-optimization-with-scrooge/comment-page-1/#comment-174795</link>
		<dc:creator>Ed Spencer</dc:creator>
		<pubDate>Thu, 05 Mar 2009 15:08:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=210#comment-174795</guid>
		<description>I guess this could be tied into your spec/test suite - the idea being that these ought to cover everything in your app anyway.  Would be nice to do a rake scrooge:scope_from_specs or something which runs all the specs and does everything for you.

If it could write the app for me too that would be a bonus.</description>
		<content:encoded><![CDATA[<p>I guess this could be tied into your spec/test suite - the idea being that these ought to cover everything in your app anyway.  Would be nice to do a rake scrooge:scope_from_specs or something which runs all the specs and does everything for you.</p>
<p>If it could write the app for me too that would be a bonus.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scrooge: An Automatic Database Query Optimizer</title>
		<link>http://www.igvita.com/2009/02/27/activerecord-optimization-with-scrooge/comment-page-1/#comment-174564</link>
		<dc:creator>Scrooge: An Automatic Database Query Optimizer</dc:creator>
		<pubDate>Wed, 04 Mar 2009 23:57:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=210#comment-174564</guid>
		<description>[...] Scrooge (or Github repository) is a &#34;dynamic query optimizer&#34; (created by Lourens Naudé) that&#39;s framework and ORM agnostic but, naturally, will probably find its biggest market in Ruby land with Rails developers. To this end, Ilya Grigorik has put together an explanatory article, ActiveRecord Optimization with Scrooge. [...]</description>
		<content:encoded><![CDATA[<p>[...] Scrooge (or Github repository) is a &#34;dynamic query optimizer&#34; (created by Lourens Naudé) that&#39;s framework and ORM agnostic but, naturally, will probably find its biggest market in Ruby land with Rails developers. To this end, Ilya Grigorik has put together an explanatory article, ActiveRecord Optimization with Scrooge. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Double Shot #402 &#171; A Fresh Cup</title>
		<link>http://www.igvita.com/2009/02/27/activerecord-optimization-with-scrooge/comment-page-1/#comment-173657</link>
		<dc:creator>Double Shot #402 &#171; A Fresh Cup</dc:creator>
		<pubDate>Mon, 02 Mar 2009 10:00:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=210#comment-173657</guid>
		<description>[...] ActiveRecord Optimization with Scrooge - Interesting approach to tuning Rails database statements by monitoring traffic patterns.         A Fresh Cup is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the universe of software. I'm a full-time Rails developer and contributor, available for long- or short-term consulting, with solid experience in working as part of a distributed team. If you'd like to hire me, drop me a line. Links [...]</description>
		<content:encoded><![CDATA[<p>[...] ActiveRecord Optimization with Scrooge - Interesting approach to tuning Rails database statements by monitoring traffic patterns.         A Fresh Cup is Mike Gunderloy&#8217;s software development weblog, covering Ruby on Rails and whatever else I find interesting in the universe of software. I&#8217;m a full-time Rails developer and contributor, available for long- or short-term consulting, with solid experience in working as part of a distributed team. If you&#8217;d like to hire me, drop me a line. Links [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2009-03-01 &#171; Brent Sordyl&#8217;s Blog</title>
		<link>http://www.igvita.com/2009/02/27/activerecord-optimization-with-scrooge/comment-page-1/#comment-173444</link>
		<dc:creator>links for 2009-03-01 &#171; Brent Sordyl&#8217;s Blog</dc:creator>
		<pubDate>Sun, 01 Mar 2009 14:01:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=210#comment-173444</guid>
		<description>[...] ActiveRecord Optimization with Scrooge The real benefit of this technique lies in its transparent nature. Both novice users who are simply unaware of the extra database cost, and a seasoned veteran working with 30K+ lines of database dependent code can breathe a sigh of relief. After all, why burden the developer with something that software can automatically optimize for us (tags: rubyonrails database activerecord optimization scrooge) [...]</description>
		<content:encoded><![CDATA[<p>[...] ActiveRecord Optimization with Scrooge The real benefit of this technique lies in its transparent nature. Both novice users who are simply unaware of the extra database cost, and a seasoned veteran working with 30K+ lines of database dependent code can breathe a sigh of relief. After all, why burden the developer with something that software can automatically optimize for us (tags: rubyonrails database activerecord optimization scrooge) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ennuyer.net &#187; Blog Archive &#187; Ruby on Rails Link Backlog</title>
		<link>http://www.igvita.com/2009/02/27/activerecord-optimization-with-scrooge/comment-page-1/#comment-173074</link>
		<dc:creator>Ennuyer.net &#187; Blog Archive &#187; Ruby on Rails Link Backlog</dc:creator>
		<pubDate>Sat, 28 Feb 2009 13:33:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=210#comment-173074</guid>
		<description>[...]  ActiveRecord Optimization with Scrooge - igvita.com  [...]</description>
		<content:encoded><![CDATA[<p>[...]  ActiveRecord Optimization with Scrooge - igvita.com  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cheapRoc</title>
		<link>http://www.igvita.com/2009/02/27/activerecord-optimization-with-scrooge/comment-page-1/#comment-172953</link>
		<dc:creator>cheapRoc</dc:creator>
		<pubDate>Sat, 28 Feb 2009 02:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=210#comment-172953</guid>
		<description>I love it when I can install a plugin and never have to learn the right way of doing it. Saves me time!! :/</description>
		<content:encoded><![CDATA[<p>I love it when I can install a plugin and never have to learn the right way of doing it. Saves me time!! :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Carter</title>
		<link>http://www.igvita.com/2009/02/27/activerecord-optimization-with-scrooge/comment-page-1/#comment-172897</link>
		<dc:creator>Nick Carter</dc:creator>
		<pubDate>Fri, 27 Feb 2009 19:01:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=210#comment-172897</guid>
		<description>@Lourens Good stuff! GOT to love that method_missing! Thanks for pointing this out.</description>
		<content:encoded><![CDATA[<p>@Lourens Good stuff! GOT to love that method_missing! Thanks for pointing this out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lourens</title>
		<link>http://www.igvita.com/2009/02/27/activerecord-optimization-with-scrooge/comment-page-1/#comment-172895</link>
		<dc:creator>Lourens</dc:creator>
		<pubDate>Fri, 27 Feb 2009 18:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=210#comment-172895</guid>
		<description>@ Ryan and @Nick,

There's a configuration option for that particular use case :

"When the contents for a given Model attribute has not been retrieved from the database, most ORM frameworks raise an error by default.This is configurable to reloading the model with all it’s columns or raise instead."

I've found the above to be more or less middle ground - there isn't much else one could do.

See "Handling Missing Attributes" in the README

- Lourens</description>
		<content:encoded><![CDATA[<p>@ Ryan and @Nick,</p>
<p>There&#8217;s a configuration option for that particular use case :</p>
<p>&#8220;When the contents for a given Model attribute has not been retrieved from the database, most ORM frameworks raise an error by default.This is configurable to reloading the model with all it’s columns or raise instead.&#8221;</p>
<p>I&#8217;ve found the above to be more or less middle ground - there isn&#8217;t much else one could do.</p>
<p>See &#8220;Handling Missing Attributes&#8221; in the README</p>
<p>- Lourens</p>
]]></content:encoded>
	</item>
</channel>
</rss>
