<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Guide to Rails Metal</title>
	<link>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/</link>
	<description>A developer\'s blog</description>
	<pubDate>Thu, 11 Mar 2010 21:42:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Twitter Trackbacks for michael galero » Blog Archive » Guide to Rails Metal [michaelgalero.com] on Topsy.com</title>
		<link>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-22038</link>
		<dc:creator>Twitter Trackbacks for michael galero » Blog Archive » Guide to Rails Metal [michaelgalero.com] on Topsy.com</dc:creator>
		<pubDate>Tue, 01 Sep 2009 09:02:45 +0000</pubDate>
		<guid>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-22038</guid>
		<description>[...] michael galero » Blog Archive » Guide to Rails Metal  devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal &#8211; view page &#8211; cached  Writing a Rails Metal app can make you realize just how spoiled we’ve become with all the convenience that comes with Rails. Without the controller and view helpers, it can become a painful experience. Here’s a guide to help make it a better experience. &#8212; From the page [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] michael galero » Blog Archive » Guide to Rails Metal  devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal &ndash; view page &ndash; cached  Writing a Rails Metal app can make you realize just how spoiled we’ve become with all the convenience that comes with Rails. Without the controller and view helpers, it can become a painful experience. Here’s a guide to help make it a better experience. &mdash; From the page [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2009-02-12 &#171; Amy G. Dala</title>
		<link>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-11407</link>
		<dc:creator>links for 2009-02-12 &#171; Amy G. Dala</dc:creator>
		<pubDate>Thu, 12 Feb 2009 19:14:12 +0000</pubDate>
		<guid>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-11407</guid>
		<description>[...] michael galero » Blog Archive » Guide to Rails Metal (tags: ruby rails reference)   Possibly related posts: (automatically generated)links for 2006-12-12RadRails IDE for Ruby on RailsRuby on Rails CritiqueCool new Ruby on Rails startups [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] michael galero » Blog Archive » Guide to Rails Metal (tags: ruby rails reference)   Possibly related posts: (automatically generated)links for 2006-12-12RadRails IDE for Ruby on RailsRuby on Rails CritiqueCool new Ruby on Rails startups [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rails Metal. A guide. - w3b.ch</title>
		<link>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-11245</link>
		<dc:creator>Rails Metal. A guide. - w3b.ch</dc:creator>
		<pubDate>Tue, 10 Feb 2009 05:00:58 +0000</pubDate>
		<guid>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-11245</guid>
		<description>[...] Michael Galero posted a helpful guide to understand how to write such an app.   This entry was written by admin, posted on February 10, 2009 at 5:00 am, filed under Ruby on Rails. Bookmark the permalink. Follow any comments here with the RSS feed for this post. Comments are closed, but you can leave a trackback: Trackback URL.    &#171; 10 AMAZING FREE STOCK PHOTOGRAPHY SITES [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Michael Galero posted a helpful guide to understand how to write such an app.   This entry was written by admin, posted on February 10, 2009 at 5:00 am, filed under Ruby on Rails. Bookmark the permalink. Follow any comments here with the RSS feed for this post. Comments are closed, but you can leave a trackback: Trackback URL.    &laquo; 10 AMAZING FREE STOCK PHOTOGRAPHY SITES [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikong</title>
		<link>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-11233</link>
		<dc:creator>mikong</dc:creator>
		<pubDate>Mon, 09 Feb 2009 14:55:03 +0000</pubDate>
		<guid>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-11233</guid>
		<description>@DHH: Yeah, you're right. I learned that the hard way. I had to scrap my metal approach for the partials, but thought I might as well post the things I've learned about accessing request params, sessions, etc.</description>
		<content:encoded><![CDATA[<p>@DHH: Yeah, you&#8217;re right. I learned that the hard way. I had to scrap my metal approach for the partials, but thought I might as well post the things I&#8217;ve learned about accessing request params, sessions, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DHH</title>
		<link>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-11228</link>
		<dc:creator>DHH</dc:creator>
		<pubDate>Mon, 09 Feb 2009 12:40:14 +0000</pubDate>
		<guid>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-11228</guid>
		<description>If you're fetching Active Records and rendering templates and partials, you've probably ventured outside the area where metal is going to give you a worthwhile boost. Have you benchmarked this vs a simple Action Controller? I doubt you're going to see a big difference.

I'd reserve Metal use to something even simpler. Like outputting prerendered text from a memcached server after doing a simple check for permissions (not going through Active Record).</description>
		<content:encoded><![CDATA[<p>If you&#8217;re fetching Active Records and rendering templates and partials, you&#8217;ve probably ventured outside the area where metal is going to give you a worthwhile boost. Have you benchmarked this vs a simple Action Controller? I doubt you&#8217;re going to see a big difference.</p>
<p>I&#8217;d reserve Metal use to something even simpler. Like outputting prerendered text from a memcached server after doing a simple check for permissions (not going through Active Record).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Double Shot #387 &#171; A Fresh Cup</title>
		<link>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-11223</link>
		<dc:creator>Double Shot #387 &#171; A Fresh Cup</dc:creator>
		<pubDate>Mon, 09 Feb 2009 11:57:57 +0000</pubDate>
		<guid>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-11223</guid>
		<description>[...] Guide to Rails Metal - Someone has actually been messing around with this enough to write about it. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Guide to Rails Metal - Someone has actually been messing around with this enough to write about it. [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikong</title>
		<link>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-10945</link>
		<dc:creator>mikong</dc:creator>
		<pubDate>Thu, 05 Feb 2009 02:58:12 +0000</pubDate>
		<guid>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-10945</guid>
		<description>@Michael: You're welcome.

@Diego:

Can you provide any numbers on that so we get an idea how much it sucks? So you compared this to a non-Metal controller doing about the same thing and that was faster (Metal version is slower)?

Also, make sure you are in production mode when testing for performance. If you're already in production mode, I can only guess that the DB call is slow. Performance of queries to DB can change, so you might want to get more samples for your benchmark, or mock the Post and stub the find method so that line won't touch the DB (only for your perf test of course).</description>
		<content:encoded><![CDATA[<p>@Michael: You&#8217;re welcome.</p>
<p>@Diego:</p>
<p>Can you provide any numbers on that so we get an idea how much it sucks? So you compared this to a non-Metal controller doing about the same thing and that was faster (Metal version is slower)?</p>
<p>Also, make sure you are in production mode when testing for performance. If you&#8217;re already in production mode, I can only guess that the DB call is slow. Performance of queries to DB can change, so you might want to get more samples for your benchmark, or mock the Post and stub the find method so that line won&#8217;t touch the DB (only for your perf test of course).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego</title>
		<link>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-10944</link>
		<dc:creator>Diego</dc:creator>
		<pubDate>Thu, 05 Feb 2009 01:43:31 +0000</pubDate>
		<guid>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-10944</guid>
		<description>Hello, 

I'm trying this:

class Poller
  def self.call(env)
    if env["PATH_INFO"] =~ /^\/poller/
      @posts = Post.find(1, :select =&#62; "title")
      [200, {"Content-Type" =&#62; "text/html"}, @posts.title]
    else
      [404, {"Content-Type" =&#62; "text/html"}, ["Not Found"]]
    end
  end
end

and the performace is very sux...

what's the problem?</description>
		<content:encoded><![CDATA[<p>Hello, </p>
<p>I&#8217;m trying this:</p>
<p>class Poller<br />
  def self.call(env)<br />
    if env[&#8221;PATH_INFO&#8221;] =~ /^\/poller/<br />
      @posts = Post.find(1, :select =&gt; &#8220;title&#8221;)<br />
      [200, {&#8221;Content-Type&#8221; =&gt; &#8220;text/html&#8221;}, @posts.title]<br />
    else<br />
      [404, {&#8221;Content-Type&#8221; =&gt; &#8220;text/html&#8221;}, [&#8221;Not Found&#8221;]]<br />
    end<br />
  end<br />
end</p>
<p>and the performace is very sux&#8230;</p>
<p>what&#8217;s the problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-10941</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 04 Feb 2009 21:25:27 +0000</pubDate>
		<guid>http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal/#comment-10941</guid>
		<description>Thanks so much. I have been looking for a way to use params and session for a few days.</description>
		<content:encoded><![CDATA[<p>Thanks so much. I have been looking for a way to use params and session for a few days.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
