<?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: Selecting related tags with SQL</title>
	<atom:link href="http://cakebaker.42dh.com/2009/02/03/selecting-related-tags-with-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2009/02/03/selecting-related-tags-with-sql/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:12:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2009/02/03/selecting-related-tags-with-sql/comment-page-1/#comment-119701</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Thu, 05 Feb 2009 17:01:13 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=1095#comment-119701</guid>
		<description>@speedmax, majna: Thanks for your comments!

@speedmax: Thanks for sharing your TaggableBehavior! Your findRelatedTags() seems to be cleaner than the SQL I&#039;m currently working on to retrieve the related tags when you provide multiple tags.

@majna: Thanks for this tip!</description>
		<content:encoded><![CDATA[<p>@speedmax, majna: Thanks for your comments!</p>
<p>@speedmax: Thanks for sharing your TaggableBehavior! Your findRelatedTags() seems to be cleaner than the SQL I&#8217;m currently working on to retrieve the related tags when you provide multiple tags.</p>
<p>@majna: Thanks for this tip!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: majna</title>
		<link>http://cakebaker.42dh.com/2009/02/03/selecting-related-tags-with-sql/comment-page-1/#comment-119529</link>
		<dc:creator>majna</dc:creator>
		<pubDate>Wed, 04 Feb 2009 09:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=1095#comment-119529</guid>
		<description>Decomposing can help on larger datasets, 
Use decomposing to avoid slow query.

Example:
SELECT * FROM tag
JOIN tag_post ON tag_post.tag_id=tag.id
JOIN post ON tag_post.post_id=post.id
WHERE tag.tag=&#039;mysql&#039;;

Decomposed:
SELECT * FROM tag WHERE tag=&#039;mysql&#039;;
SELECT * FROM tag_post WHERE tag_id=1234;
SELECT * FROM post WHERE post.id in (123,456,567,9098,8904);</description>
		<content:encoded><![CDATA[<p>Decomposing can help on larger datasets,<br />
Use decomposing to avoid slow query.</p>
<p>Example:<br />
SELECT * FROM tag<br />
JOIN tag_post ON tag_post.tag_id=tag.id<br />
JOIN post ON tag_post.post_id=post.id<br />
WHERE tag.tag=&#8217;mysql&#8217;;</p>
<p>Decomposed:<br />
SELECT * FROM tag WHERE tag=&#8217;mysql&#8217;;<br />
SELECT * FROM tag_post WHERE tag_id=1234;<br />
SELECT * FROM post WHERE post.id in (123,456,567,9098,8904);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: speedmax</title>
		<link>http://cakebaker.42dh.com/2009/02/03/selecting-related-tags-with-sql/comment-page-1/#comment-119489</link>
		<dc:creator>speedmax</dc:creator>
		<pubDate>Wed, 04 Feb 2009 03:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=1095#comment-119489</guid>
		<description>I used pretty much exactly the same Query for my own project, then i have builded a TaggableBehavior for CakePHP to add tagging feature for any model. loosely based on DHH&#039;s acts_as_taggable

http://gist.github.com/57906

then i have also added following methods, u may find it useful

findRelatedTags(), 
findRelatedTagged(),  
findPopularTag() 
findTaggedWith(), 
findTagCount()</description>
		<content:encoded><![CDATA[<p>I used pretty much exactly the same Query for my own project, then i have builded a TaggableBehavior for CakePHP to add tagging feature for any model. loosely based on DHH&#8217;s acts_as_taggable</p>
<p><a href="http://gist.github.com/57906" rel="nofollow">http://gist.github.com/57906</a></p>
<p>then i have also added following methods, u may find it useful</p>
<p>findRelatedTags(),<br />
findRelatedTagged(),<br />
findPopularTag()<br />
findTaggedWith(),<br />
findTagCount()</p>
]]></content:encoded>
	</item>
</channel>
</rss>

