<?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: (Un)Support for prepared statements in Ruby on Rails</title>
	<atom:link href="http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/</link>
	<description>Ecchi nanowa ikenai to omoimasu</description>
	<lastBuildDate>Fri, 09 Apr 2010 11:42:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Sam Homer</title>
		<link>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/comment-page-1/#comment-10047</link>
		<dc:creator>Sam Homer</dc:creator>
		<pubDate>Sun, 07 Mar 2010 14:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/?p=35#comment-10047</guid>
		<description>The DB2 database adapter for Rails 3 supports prepared statements:
http://www.ibm.com/developerworks/data/library/techarticle/dm-1001db2rubyonrailsapps/

Now if only somebody could add this feature to the PostgreSQL adapter as well. To me the main reason to use prepared statements is not performance but security. In addition, the very nature of a rails app makes it a prime candidate for prepared statements: Rails basically fills templates with live data, and every template invocation calls the same queries, only with different parameters.</description>
		<content:encoded><![CDATA[<p>The DB2 database adapter for Rails 3 supports prepared statements:<br />
<a href="http://www.ibm.com/developerworks/data/library/techarticle/dm-1001db2rubyonrailsapps/" rel="nofollow">http://www.ibm.com/developerworks/data/library/techarticle/dm-1001db2rubyonrailsapps/</a></p>
<p>Now if only somebody could add this feature to the PostgreSQL adapter as well. To me the main reason to use prepared statements is not performance but security. In addition, the very nature of a rails app makes it a prime candidate for prepared statements: Rails basically fills templates with live data, and every template invocation calls the same queries, only with different parameters.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barath</title>
		<link>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/comment-page-1/#comment-9915</link>
		<dc:creator>Barath</dc:creator>
		<pubDate>Wed, 29 Apr 2009 12:52:29 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/?p=35#comment-9915</guid>
		<description>Hi,

I am curious about your final comment. Could you make clear the reason why you think there is not enough performance advantages. Did you try to &#039;benchmark&#039; your changes with a database/driver that caches prepared statements. 

.

Barath</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am curious about your final comment. Could you make clear the reason why you think there is not enough performance advantages. Did you try to &#8216;benchmark&#8217; your changes with a database/driver that caches prepared statements. </p>
<p>.</p>
<p>Barath</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hongli</title>
		<link>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/comment-page-1/#comment-9652</link>
		<dc:creator>Hongli</dc:creator>
		<pubDate>Mon, 01 Dec 2008 20:23:49 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/?p=35#comment-9652</guid>
		<description>I&#039;ve given up on this patch. There are not enough advantages to make it worthwhile.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve given up on this patch. There are not enough advantages to make it worthwhile.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wes Gamble</title>
		<link>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/comment-page-1/#comment-9651</link>
		<dc:creator>Wes Gamble</dc:creator>
		<pubDate>Mon, 01 Dec 2008 20:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/?p=35#comment-9651</guid>
		<description>Any more news on this patch?  Still very interested...</description>
		<content:encoded><![CDATA[<p>Any more news on this patch?  Still very interested&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike M</title>
		<link>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/comment-page-1/#comment-9242</link>
		<dc:creator>Mike M</dc:creator>
		<pubDate>Wed, 25 Jun 2008 17:51:28 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/?p=35#comment-9242</guid>
		<description>Hi,

What is the status of the patch?

Mike</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>What is the status of the patch?</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hongli</title>
		<link>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/comment-page-1/#comment-7458</link>
		<dc:creator>Hongli</dc:creator>
		<pubDate>Sun, 09 Dec 2007 00:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/?p=35#comment-7458</guid>
		<description>Yes it&#039;s possible. So far I&#039;ve resisted the idea though: my patch changes a lot of ActiveRecord internals. Plugin-izing all this will mean overwriting a lot of private methods. If the Rails team changes even one line of code to ActiveRecord then it&#039;s likely that the plugin will break.

You can see exactly what has changed by comparing http://public.railsplugins.net/repos/prepared-statements/trunk/ with http://public.railsplugins.net/repos/prepared-statements/vendor/rails-r6737/
The code will probably have to be updated in order to be Rails 2.0 compatible.</description>
		<content:encoded><![CDATA[<p>Yes it&#8217;s possible. So far I&#8217;ve resisted the idea though: my patch changes a lot of ActiveRecord internals. Plugin-izing all this will mean overwriting a lot of private methods. If the Rails team changes even one line of code to ActiveRecord then it&#8217;s likely that the plugin will break.</p>
<p>You can see exactly what has changed by comparing <a href="http://public.railsplugins.net/repos/prepared-statements/trunk/" rel="nofollow">http://public.railsplugins.net/repos/prepared-statements/trunk/</a> with <a href="http://public.railsplugins.net/repos/prepared-statements/vendor/rails-r6737/" rel="nofollow">http://public.railsplugins.net/repos/prepared-statements/vendor/rails-r6737/</a><br />
The code will probably have to be updated in order to be Rails 2.0 compatible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ned Wolpert</title>
		<link>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/comment-page-1/#comment-7457</link>
		<dc:creator>Ned Wolpert</dc:creator>
		<pubDate>Sat, 08 Dec 2007 23:29:47 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/?p=35#comment-7457</guid>
		<description>Do you think its possible to transform the patch into a plugin? The repo has tons of stuff in it... I assume only part of the activerecord side needs to occur. I&#039;m willing to try and create a plugin against Rails 2.0 codebase... though I could see keeping it up to date with activerecord changes may be... interesting.</description>
		<content:encoded><![CDATA[<p>Do you think its possible to transform the patch into a plugin? The repo has tons of stuff in it&#8230; I assume only part of the activerecord side needs to occur. I&#8217;m willing to try and create a plugin against Rails 2.0 codebase&#8230; though I could see keeping it up to date with activerecord changes may be&#8230; interesting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hongli</title>
		<link>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/comment-page-1/#comment-7456</link>
		<dc:creator>Hongli</dc:creator>
		<pubDate>Sat, 08 Dec 2007 19:02:48 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/?p=35#comment-7456</guid>
		<description>I haven&#039;t worked on this for a while now. But the source code is available on the following SVN repostory: http://public.railsplugins.net/repos/prepared-statements/trunk/
This code is based on Rails revision 6737 (about 6 months ago).</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t worked on this for a while now. But the source code is available on the following SVN repostory: <a href="http://public.railsplugins.net/repos/prepared-statements/trunk/" rel="nofollow">http://public.railsplugins.net/repos/prepared-statements/trunk/</a><br />
This code is based on Rails revision 6737 (about 6 months ago).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ned Wolpert</title>
		<link>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/comment-page-1/#comment-7455</link>
		<dc:creator>Ned Wolpert</dc:creator>
		<pubDate>Sat, 08 Dec 2007 18:26:51 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/?p=35#comment-7455</guid>
		<description>What is the latest status of prepared statements and ActiveRecord? Is it still in patch form? Could the patch be turned into a plugin?

Need any help?</description>
		<content:encoded><![CDATA[<p>What is the latest status of prepared statements and ActiveRecord? Is it still in patch form? Could the patch be turned into a plugin?</p>
<p>Need any help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matadon</title>
		<link>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/comment-page-1/#comment-6557</link>
		<dc:creator>Matadon</dc:creator>
		<pubDate>Mon, 23 Jul 2007 21:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/?p=35#comment-6557</guid>
		<description>This is exactly the sort of thing I had in mind, although more with bound variables than prepared statements.  I use PostgreSQL as a backend, and Rails&#039; performance, especially with large JOINs and big chunks of data, leaves quite a bit to be desired.  If you want a hand in testing and/or coding for Postgres, let me know!</description>
		<content:encoded><![CDATA[<p>This is exactly the sort of thing I had in mind, although more with bound variables than prepared statements.  I use PostgreSQL as a backend, and Rails&#8217; performance, especially with large JOINs and big chunks of data, leaves quite a bit to be desired.  If you want a hand in testing and/or coding for Postgres, let me know!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
