<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<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: (Un)Support for prepared statements in Ruby on Rails</title>
	<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>
	<pubDate>Sat, 05 Jul 2008 18:40:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<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-9242</link>
		<dc:creator>Mike M</dc:creator>
		<pubDate>Wed, 25 Jun 2008 17:51:28 +0000</pubDate>
		<guid>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/#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-7458</link>
		<dc:creator>Hongli</dc:creator>
		<pubDate>Sun, 09 Dec 2007 00:03:15 +0000</pubDate>
		<guid>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/#comment-7458</guid>
		<description>Yes it's possible. So far I'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'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-7457</link>
		<dc:creator>Ned Wolpert</dc:creator>
		<pubDate>Sat, 08 Dec 2007 23:29:47 +0000</pubDate>
		<guid>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/#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'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-7456</link>
		<dc:creator>Hongli</dc:creator>
		<pubDate>Sat, 08 Dec 2007 19:02:48 +0000</pubDate>
		<guid>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/#comment-7456</guid>
		<description>I haven'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-7455</link>
		<dc:creator>Ned Wolpert</dc:creator>
		<pubDate>Sat, 08 Dec 2007 18:26:51 +0000</pubDate>
		<guid>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/#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-6557</link>
		<dc:creator>Matadon</dc:creator>
		<pubDate>Mon, 23 Jul 2007 21:51:02 +0000</pubDate>
		<guid>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/#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' 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>
	<item>
		<title>By: Charles Oliver Nutter</title>
		<link>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/#comment-6507</link>
		<dc:creator>Charles Oliver Nutter</dc:creator>
		<pubDate>Fri, 01 Jun 2007 18:28:27 +0000</pubDate>
		<guid>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/#comment-6507</guid>
		<description>Hey were were talking on #jruby today about how to support prepared statements, and wham, someone pointed us to this blog post. This is exactly what we had in mind--feeding fragments to a statement builder, composing the actual statements later, possibly using a prepared statement (JIT style I'd guess, since we don't want to compile every random query that comes through). This is great work...and there's a new wrinkle I'd like to toss in.

It would be trivial for us to use prepared statements in the backend code of the ActiveRecord JDBC adapter, since the API for such is exactly the same all the time...and almost identical to the API for normal statements. If you've got something working for MySQL, it may be possible to get it running for all databases in AR-JDBC in a very short time. I think that would be an excellent way to try this out across the board and see how well it works.

If you get a chance, please contact me or join the JRuby or JRuby-extras (rubyforge) mailing lists...we could probably come up with something really cool.</description>
		<content:encoded><![CDATA[<p>Hey were were talking on #jruby today about how to support prepared statements, and wham, someone pointed us to this blog post. This is exactly what we had in mind&#8211;feeding fragments to a statement builder, composing the actual statements later, possibly using a prepared statement (JIT style I&#8217;d guess, since we don&#8217;t want to compile every random query that comes through). This is great work&#8230;and there&#8217;s a new wrinkle I&#8217;d like to toss in.</p>
<p>It would be trivial for us to use prepared statements in the backend code of the ActiveRecord JDBC adapter, since the API for such is exactly the same all the time&#8230;and almost identical to the API for normal statements. If you&#8217;ve got something working for MySQL, it may be possible to get it running for all databases in AR-JDBC in a very short time. I think that would be an excellent way to try this out across the board and see how well it works.</p>
<p>If you get a chance, please contact me or join the JRuby or JRuby-extras (rubyforge) mailing lists&#8230;we could probably come up with something really cool.</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-6500</link>
		<dc:creator>Hongli</dc:creator>
		<pubDate>Thu, 24 May 2007 07:59:56 +0000</pubDate>
		<guid>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/#comment-6500</guid>
		<description>doug livesey: I would like to, but I don't have access to anything but MySQL and PostgreSQL (and perhaps SQLite).</description>
		<content:encoded><![CDATA[<p>doug livesey: I would like to, but I don&#8217;t have access to anything but MySQL and PostgreSQL (and perhaps SQLite).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doug livesey</title>
		<link>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/#comment-6499</link>
		<dc:creator>doug livesey</dc:creator>
		<pubDate>Thu, 24 May 2007 07:30:19 +0000</pubDate>
		<guid>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/#comment-6499</guid>
		<description>Hi -- is there any plan to support the entire suite of DBs supported by Rails?
I was a very bad man in an earlier life, so I have to work with SQL Server, and have had to deal with all sorts of little peculiarities -- particularly in migrations.
Anyway, this looks fantastic!
Cheers,
   Doug.</description>
		<content:encoded><![CDATA[<p>Hi &#8212; is there any plan to support the entire suite of DBs supported by Rails?<br />
I was a very bad man in an earlier life, so I have to work with SQL Server, and have had to deal with all sorts of little peculiarities &#8212; particularly in migrations.<br />
Anyway, this looks fantastic!<br />
Cheers,<br />
   Doug.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Berger</title>
		<link>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/#comment-6498</link>
		<dc:creator>Daniel Berger</dc:creator>
		<pubDate>Tue, 22 May 2007 16:36:16 +0000</pubDate>
		<guid>http://izumi.plan99.net/blog/index.php/2007/05/14/unsupport-for-prepared-statements-in-ruby-on-rails/#comment-6498</guid>
		<description>Here's a great article from Oracle you'll want to look at that discusses bind parameters and Rails:

http://www.oracle.com/technology/pub/articles/mearelli-optimizing-oracle-rails.html

As for MySQL, Eric Hodel tells me that the MySQL server clears the query cache as soon as you run an INSERT or DELETE, which makes it pretty useless IMHO.</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a great article from Oracle you&#8217;ll want to look at that discusses bind parameters and Rails:</p>
<p><a href="http://www.oracle.com/technology/pub/articles/mearelli-optimizing-oracle-rails.html" rel="nofollow">http://www.oracle.com/technology/pub/articles/mearelli-optimizing-oracle-rails.html</a></p>
<p>As for MySQL, Eric Hodel tells me that the MySQL server clears the query cache as soon as you run an INSERT or DELETE, which makes it pretty useless IMHO.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
