<?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: Railers Need To Stop Not Caring About The Database</title>
	<atom:link href="http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/</link>
	<description>Because programming should be fun</description>
	<lastBuildDate>Wed, 04 Jan 2012 05:17:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Aladdin With A Lamp &#187; 『Ruby on Rails』&#124;很好很好的资料！</title>
		<link>http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/comment-page-1/#comment-815</link>
		<dc:creator>Aladdin With A Lamp &#187; 『Ruby on Rails』&#124;很好很好的资料！</dc:creator>
		<pubDate>Thu, 12 Feb 2009 12:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/#comment-815</guid>
		<description>[...] Railers Need To Stop Not Caring About The Database [...]</description>
		<content:encoded><![CDATA[<p>[...] Railers Need To Stop Not Caring About The Database [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Texor</title>
		<link>http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/comment-page-1/#comment-707</link>
		<dc:creator>Texor</dc:creator>
		<pubDate>Tue, 07 Oct 2008 18:44:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/#comment-707</guid>
		<description>He, he,... I&#039;ve been on IT business for 17 years, and must admit that Rails make me nervous when I think about performance in general - and DB in particular.    But, we always have this very same argument with our DBA: times are changing, development cycles are meant to be &quot;agile&quot;, and not *everything* can be fine-tuned just-in-case.

After all, this is the reason for having a testing / QA process. When a slow query/transaction shows up... dig for it and fix it!

Nice article.</description>
		<content:encoded><![CDATA[<p>He, he,&#8230; I&#8217;ve been on IT business for 17 years, and must admit that Rails make me nervous when I think about performance in general &#8211; and DB in particular.    But, we always have this very same argument with our DBA: times are changing, development cycles are meant to be &#8220;agile&#8221;, and not *everything* can be fine-tuned just-in-case.</p>
<p>After all, this is the reason for having a testing / QA process. When a slow query/transaction shows up&#8230; dig for it and fix it!</p>
<p>Nice article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/comment-page-1/#comment-675</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Sat, 13 Sep 2008 18:32:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/#comment-675</guid>
		<description>njdba, stfu and go back to Oracle developper 2000 you arrogant ass.

It&#039;s not my style but damn it feels good to let it go once in a while.</description>
		<content:encoded><![CDATA[<p>njdba, stfu and go back to Oracle developper 2000 you arrogant ass.</p>
<p>It&#8217;s not my style but damn it feels good to let it go once in a while.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: njdba</title>
		<link>http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/comment-page-1/#comment-659</link>
		<dc:creator>njdba</dc:creator>
		<pubDate>Thu, 04 Sep 2008 03:55:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/#comment-659</guid>
		<description>Any one who is unaware of SQL and is creating an application should not be in IT. It is that simple. I have been in this business for 20years and this makes me sick. All that is see is garbage and idiots that create stuff that does not work.  I consult to clients who hire you idiots and you will find that with the little knowledge you have your stuff will not work.</description>
		<content:encoded><![CDATA[<p>Any one who is unaware of SQL and is creating an application should not be in IT. It is that simple. I have been in this business for 20years and this makes me sick. All that is see is garbage and idiots that create stuff that does not work.  I consult to clients who hire you idiots and you will find that with the little knowledge you have your stuff will not work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roger</title>
		<link>http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/comment-page-1/#comment-639</link>
		<dc:creator>roger</dc:creator>
		<pubDate>Fri, 25 Jul 2008 00:53:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/#comment-639</guid>
		<description>I second the motion for wishing rails would warn when it encountered a potentially bad query :)</description>
		<content:encoded><![CDATA[<p>I second the motion for wishing rails would warn when it encountered a potentially bad query :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Green Rails</title>
		<link>http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/comment-page-1/#comment-595</link>
		<dc:creator>Green Rails</dc:creator>
		<pubDate>Tue, 29 Apr 2008 23:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/#comment-595</guid>
		<description>This is so very true: Rails is pretty damned magic, but sometimes the rubber meets the road.  

SQL makes me laugh since a design goal was to be usable by typical business people ... yeah, right.  I consider myself a black-belt SQLer (arguable, but invite smackdowns from any interested combatant), and despite my &gt;20 years experience with the language, I still find SQL to be the most infuriating and obtuse syntax on the face of the earth (this includes C and C++, as well as perl).  Rails insulates us in perhaps 90% of normal cases from the gnarly details.  The problem is those 10% of the rest.

I wonder if there&#039;s a need for a Rails &quot;sniff check&quot; of a given controller action, or query?  Wouldn&#039;t it be cool if Rails warned &quot;this query takes a really long time -- try these things before hiring a $250/hour consultant: 1) use eager loading, 2) check to make sure these columns are indexed (&quot;foo&quot;, &quot;bar&quot;, &quot;fubar&quot;), and 3) learn SQL, you lazy, incompetent so-called software engineer.  OK, maybe just 2 things.

We dealt with this issue in the last few days for a really complicated polymorphic query.  It is as real as it gets.  Rails doesn&#039;t solve all problems ... yet.</description>
		<content:encoded><![CDATA[<p>This is so very true: Rails is pretty damned magic, but sometimes the rubber meets the road.  </p>
<p>SQL makes me laugh since a design goal was to be usable by typical business people &#8230; yeah, right.  I consider myself a black-belt SQLer (arguable, but invite smackdowns from any interested combatant), and despite my &gt;20 years experience with the language, I still find SQL to be the most infuriating and obtuse syntax on the face of the earth (this includes C and C++, as well as perl).  Rails insulates us in perhaps 90% of normal cases from the gnarly details.  The problem is those 10% of the rest.</p>
<p>I wonder if there&#8217;s a need for a Rails &#8220;sniff check&#8221; of a given controller action, or query?  Wouldn&#8217;t it be cool if Rails warned &#8220;this query takes a really long time &#8212; try these things before hiring a $250/hour consultant: 1) use eager loading, 2) check to make sure these columns are indexed (&#8220;foo&#8221;, &#8220;bar&#8221;, &#8220;fubar&#8221;), and 3) learn SQL, you lazy, incompetent so-called software engineer.  OK, maybe just 2 things.</p>
<p>We dealt with this issue in the last few days for a really complicated polymorphic query.  It is as real as it gets.  Rails doesn&#8217;t solve all problems &#8230; yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/comment-page-1/#comment-594</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Mon, 28 Apr 2008 13:01:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/#comment-594</guid>
		<description>@Akita,

*sigh*... enough with this already... this is getting on my nerves. I know the difference between INNER and OUTER. A left outer join includes the rows in the right tables even if there are no match (when it happens the columns in the right table will all be filled with NULLs) while an INNER join only returns the rows &quot;that matches&quot;. In my specific case it just could not happen that a row from the right table does not match a row from the left. 

Is this explanation convince you that I know what joins are or do you still need more clarifications?</description>
		<content:encoded><![CDATA[<p>@Akita,</p>
<p>*sigh*&#8230; enough with this already&#8230; this is getting on my nerves. I know the difference between INNER and OUTER. A left outer join includes the rows in the right tables even if there are no match (when it happens the columns in the right table will all be filled with NULLs) while an INNER join only returns the rows &#8220;that matches&#8221;. In my specific case it just could not happen that a row from the right table does not match a row from the left. </p>
<p>Is this explanation convince you that I know what joins are or do you still need more clarifications?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AkitaOnRails</title>
		<link>http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/comment-page-1/#comment-593</link>
		<dc:creator>AkitaOnRails</dc:creator>
		<pubDate>Sun, 27 Apr 2008 17:58:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/#comment-593</guid>
		<description>Do you really know the difference between &#039;inner&#039; and &#039;outer&#039; joins? They are quite striking and you can&#039;t replace one for the other with no adequate reasoning. Rails jas both :include and :joins keyword (and :joins accept an array or strings as well) and you have to do the reasoning on what do you want. It seems to me that you don&#039;t know those differences and what do you really want.</description>
		<content:encoded><![CDATA[<p>Do you really know the difference between &#8216;inner&#8217; and &#8216;outer&#8217; joins? They are quite striking and you can&#8217;t replace one for the other with no adequate reasoning. Rails jas both :include and :joins keyword (and :joins accept an array or strings as well) and you have to do the reasoning on what do you want. It seems to me that you don&#8217;t know those differences and what do you really want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil Wilson</title>
		<link>http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/comment-page-1/#comment-592</link>
		<dc:creator>Neil Wilson</dc:creator>
		<pubDate>Sun, 27 Apr 2008 10:44:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/#comment-592</guid>
		<description>You should ignore the database, until you can&#039;t ignore it any longer. I&#039;ve seen the SQL that Rails has generated and figured I could write better by hand. But then I&#039;ve seen the assembler generated by C compilers and reckoned that I could write better by hand. That is not the point though. Ultimately what you are missing here is a tool on the database that *tells* you when you should put an index on something. I&#039;ve alwasy been surpirsed at how poor the tooling is at the database level. Perhaps there is too much &#039;hand optimisation&#039; going on, not too ittle</description>
		<content:encoded><![CDATA[<p>You should ignore the database, until you can&#8217;t ignore it any longer. I&#8217;ve seen the SQL that Rails has generated and figured I could write better by hand. But then I&#8217;ve seen the assembler generated by C compilers and reckoned that I could write better by hand. That is not the point though. Ultimately what you are missing here is a tool on the database that *tells* you when you should put an index on something. I&#8217;ve alwasy been surpirsed at how poor the tooling is at the database level. Perhaps there is too much &#8216;hand optimisation&#8217; going on, not too ittle</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/comment-page-1/#comment-591</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Fri, 25 Apr 2008 16:20:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/railers-need-to-stop-not-caring-about-the-database/#comment-591</guid>
		<description>Thanks everyone for your comments

The morale of the story for me is that you cannot blindly delegate everything that is &quot;database related&quot; to ActiveRecord or any other O/R mapping tool. Maybe one day tools like ActiveRecord will be so advanced that playing at the database level will not be a necessity anymore ... but this time hasn&#039;t come yet. Until then we have to keep an eye on the generated queries from time to time as well as do some optimizing when our app ask for it.

You know what? Before switching to Rails I was a convinced .NET (1.1) developer that used to write all his SQL queries by hand. I remember how much it was repetitive and tedious to do this for every single project. I hated it so much that I made the mistake of embracing ActiveRecord with too much passion when I made the switch to Rails. There is an old saying that love is blind... I should have think about it.</description>
		<content:encoded><![CDATA[<p>Thanks everyone for your comments</p>
<p>The morale of the story for me is that you cannot blindly delegate everything that is &#8220;database related&#8221; to ActiveRecord or any other O/R mapping tool. Maybe one day tools like ActiveRecord will be so advanced that playing at the database level will not be a necessity anymore &#8230; but this time hasn&#8217;t come yet. Until then we have to keep an eye on the generated queries from time to time as well as do some optimizing when our app ask for it.</p>
<p>You know what? Before switching to Rails I was a convinced .NET (1.1) developer that used to write all his SQL queries by hand. I remember how much it was repetitive and tedious to do this for every single project. I hated it so much that I made the mistake of embracing ActiveRecord with too much passion when I made the switch to Rails. There is an old saying that love is blind&#8230; I should have think about it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

