<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[TNF : Tatter Network Foundation forum - 태그를 출력할때 쓰는 쿼리가 문제가 많습니다.]]></title>
		<link>http://forum.tattersite.com/ko/viewtopic.php?id=6567</link>
		<description><![CDATA[태그를 출력할때 쓰는 쿼리가 문제가 많습니다. 의 최근 RSS 글들.]]></description>
		<lastBuildDate>Tue, 09 Sep 2008 03:45:22 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[태그를 출력할때 쓰는 쿼리가 문제가 많습니다.]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=30146#p30146</link>
			<description><![CDATA[<p>SELECT name, count(*) cnt, t.id FROM `tc_Tags` t,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; `tc_TagRelations` r,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; `tc_Entries` e<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE r.entry = e.id AND e.visibility &gt; 0 AND t.id = r.tag AND r.blogid = 11 AND e.blogid = 11<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GROUP BY r.tag<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ORDER BY RAND() limit 30</p><p>order 가 무작위이다 보니 더욱더 속도가 느려지는 것 같습니다. 대부분 slow쿼리에 등록되는 놈이 이것들입니다.</p><p>차라리 쿼리를 분리해서 e.visibility &gt; 0인 entry.id를 구해서&nbsp; in()을 쓰는게 어떨지...</p>]]></description>
			<author><![CDATA[null@example.com (엽기민원)]]></author>
			<pubDate>Tue, 09 Sep 2008 03:45:22 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=30146#p30146</guid>
		</item>
	</channel>
</rss>
