<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CS8 &#187; activerecord</title>
	<atom:link href="http://www.cs8.my/tag/activerecord/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cs8.my</link>
	<description>Rapid Web Applications Done The Right Way!</description>
	<lastBuildDate>Thu, 02 Feb 2012 20:02:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Includes &amp; Eager Loading</title>
		<link>http://www.cs8.my/2009/06/includes-eager-loading/</link>
		<comments>http://www.cs8.my/2009/06/includes-eager-loading/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 14:27:04 +0000</pubDate>
		<dc:creator>fadhli</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[activerecord]]></category>
		<category><![CDATA[eager loading]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://bugsneedfix.wordpress.com/?p=91</guid>
		<description><![CDATA[I&#8217;m figuring out something in my rails app.  I&#8217;m figuring out which one&#8217;s the worst: Eager loading 100 rows of data you don&#8217;t actually need at the moment or 10 queries giving 10 result set at once? Here&#8217;s the code to explain it. 1 2 3 @event = Event.find&#40;params&#91;:event_id&#93;&#41; &#160; @event_attendees = @event.attendees.paginate&#40;:page =&#62; params&#91;:page&#93;, [...]]]></description>
		<wfw:commentRss>http://www.cs8.my/2009/06/includes-eager-loading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ensuring your join model uniqueness</title>
		<link>http://www.cs8.my/2008/07/ensuring-your-join-model-uniqueness/</link>
		<comments>http://www.cs8.my/2008/07/ensuring-your-join-model-uniqueness/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 09:28:12 +0000</pubDate>
		<dc:creator>fadhli</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[:scope]]></category>
		<category><![CDATA[activerecord]]></category>
		<category><![CDATA[validates_uniqueness_of]]></category>

		<guid isPermaLink="false">http://bugsneedfix.wordpress.com/?p=70</guid>
		<description><![CDATA[For example: id &#124;category_id &#124; inventory_id 1 384 1 #first entry 2 384 2 #this would be ok. 3 384 1 #this would not be ok To ensure that a category_id doesn&#8217;t have any inventory_id duplicate: [sourcecode language="ruby"] class CategoryProduct < ActiveRecord::Base   belongs_to :category   belongs_to :inventory   validates_uniqueness_of :category_id, :scope => :inventory_id end [...]]]></description>
		<wfw:commentRss>http://www.cs8.my/2008/07/ensuring-your-join-model-uniqueness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

