<?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: To SQL_CALC_FOUND_ROWS or not to SQL_CALC_FOUND_ROWS?</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 21 Nov 2009 14:15:21 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Prasanna</title>
		<link>http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/comment-page-1/#comment-661064</link>
		<dc:creator>Prasanna</dc:creator>
		<pubDate>Fri, 02 Oct 2009 14:38:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/#comment-661064</guid>
		<description>One question or may be suggestion - count(*) will be slower than count(primary_key). What you think?</description>
		<content:encoded><![CDATA[<p>One question or may be suggestion &#8211; count(*) will be slower than count(primary_key). What you think?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ani</title>
		<link>http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/comment-page-1/#comment-651968</link>
		<dc:creator>Ani</dc:creator>
		<pubDate>Sat, 12 Sep 2009 12:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/#comment-651968</guid>
		<description>Hello,


I would like to state a simple point here. Please visit the mysql official documentation here http://dev.mysql.com/doc/refman/5.1/en/information-functions.html

Please have a look at FOUND_ROWS() function. They have mentioned that it is much faster to use the query with sql_calc_found_rows rather than using a query again. And I don&#039;t find any reason not to trust them.

Ani</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I would like to state a simple point here. Please visit the mysql official documentation here <a href="http://dev.mysql.com/doc/refman/5.1/en/information-functions.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.1/en/information-functions.html</a></p>
<p>Please have a look at FOUND_ROWS() function. They have mentioned that it is much faster to use the query with sql_calc_found_rows rather than using a query again. And I don&#8217;t find any reason not to trust them.</p>
<p>Ani</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ibrahim oğuz</title>
		<link>http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/comment-page-1/#comment-651637</link>
		<dc:creator>ibrahim oğuz</dc:creator>
		<pubDate>Fri, 11 Sep 2009 09:09:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/#comment-651637</guid>
		<description>select count(*) from users group by city 
for this query if you use count this not will give you true result. in this case you have to use mysql_num_rows or SQL_CALC_FOUND_ROWS , mysql_num_rows runs very slow. we have only one option it is SQL_CALC_FOUND_ROWS.

if any one have a solution let me know?

thanks.</description>
		<content:encoded><![CDATA[<p>select count(*) from users group by city<br />
for this query if you use count this not will give you true result. in this case you have to use mysql_num_rows or SQL_CALC_FOUND_ROWS , mysql_num_rows runs very slow. we have only one option it is SQL_CALC_FOUND_ROWS.</p>
<p>if any one have a solution let me know?</p>
<p>thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WordPress still uses the nasty SQL_CALC_FOUND_ROWS &#171; _ck_ says&#8230;</title>
		<link>http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/comment-page-1/#comment-614390</link>
		<dc:creator>WordPress still uses the nasty SQL_CALC_FOUND_ROWS &#171; _ck_ says&#8230;</dc:creator>
		<pubDate>Wed, 22 Jul 2009 18:44:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/#comment-614390</guid>
		<description>[...] is typically three times slower than using COUNT() on the same query without LIMIT and ORDER [...]</description>
		<content:encoded><![CDATA[<p>[...] is typically three times slower than using COUNT() on the same query without LIMIT and ORDER [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baron Schwartz</title>
		<link>http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/comment-page-1/#comment-601627</link>
		<dc:creator>Baron Schwartz</dc:creator>
		<pubDate>Wed, 01 Jul 2009 01:06:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/#comment-601627</guid>
		<description>I think the comments on this blog can be answered with &quot;your mileage may vary.&quot;  In the &quot;real world&quot; I have seen severe performance degradation many times.  I&#039;m sure there are cases where it doesn&#039;t degrade performance, and I don&#039;t notice because I&#039;m looking at what IS the performance problem on a server.</description>
		<content:encoded><![CDATA[<p>I think the comments on this blog can be answered with &#8220;your mileage may vary.&#8221;  In the &#8220;real world&#8221; I have seen severe performance degradation many times.  I&#8217;m sure there are cases where it doesn&#8217;t degrade performance, and I don&#8217;t notice because I&#8217;m looking at what IS the performance problem on a server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Menno</title>
		<link>http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/comment-page-1/#comment-601288</link>
		<dc:creator>Menno</dc:creator>
		<pubDate>Tue, 30 Jun 2009 18:43:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/#comment-601288</guid>
		<description>I found that when doing complex multitable selects, SQL_CALC_FOUND_ROWS adds virtually no extra execution time to the query.
Like Brian said, the example mentioned in this blog post is about as far from a real world scenario as possible.</description>
		<content:encoded><![CDATA[<p>I found that when doing complex multitable selects, SQL_CALC_FOUND_ROWS adds virtually no extra execution time to the query.<br />
Like Brian said, the example mentioned in this blog post is about as far from a real world scenario as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 关于用SQL实现分页的一个优化方法 &#124; 鸭嘴的blog</title>
		<link>http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/comment-page-1/#comment-554849</link>
		<dc:creator>关于用SQL实现分页的一个优化方法 &#124; 鸭嘴的blog</dc:creator>
		<pubDate>Sun, 03 May 2009 14:31:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/#comment-554849</guid>
		<description>[...] To SQL_CALC_FOUND_ROWS or not to SQL_CALC_FOUND_ROWS? 事实证明，当查询语句中的WHERE和ORDER的条件有合适的索引，选择两次查询而不是SQL_CALC_FOUND_ROWS [...]</description>
		<content:encoded><![CDATA[<p>[...] To SQL_CALC_FOUND_ROWS or not to SQL_CALC_FOUND_ROWS? 事实证明，当查询语句中的WHERE和ORDER的条件有合适的索引，选择两次查询而不是SQL_CALC_FOUND_ROWS [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/comment-page-1/#comment-512986</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Fri, 20 Mar 2009 02:50:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/#comment-512986</guid>
		<description>In my case COUNT(*) was the hog that&#039;s been driving my search slow, and SQL_CALC_FOUND_ROWS saved me, and like george suggests I&#039;ve been using ORDER BY, JOIN, not some childish case like the one presented here.</description>
		<content:encoded><![CDATA[<p>In my case COUNT(*) was the hog that&#8217;s been driving my search slow, and SQL_CALC_FOUND_ROWS saved me, and like george suggests I&#8217;ve been using ORDER BY, JOIN, not some childish case like the one presented here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: george</title>
		<link>http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/comment-page-1/#comment-490258</link>
		<dc:creator>george</dc:creator>
		<pubDate>Thu, 26 Feb 2009 12:58:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/#comment-490258</guid>
		<description>Could you please repeat this test with a proper case featuring 2x JOIN, a WHERE clause, a GROUP_BY, and an ORDER_BY, please?
my point is, your test is most probably misleading.</description>
		<content:encoded><![CDATA[<p>Could you please repeat this test with a proper case featuring 2x JOIN, a WHERE clause, a GROUP_BY, and an ORDER_BY, please?<br />
my point is, your test is most probably misleading.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcyes / benchmarking Counting Rows in MySQL for Pagination</title>
		<link>http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/comment-page-1/#comment-482232</link>
		<dc:creator>Marcyes / benchmarking Counting Rows in MySQL for Pagination</dc:creator>
		<pubDate>Thu, 19 Feb 2009 10:54:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/#comment-482232</guid>
		<description>[...] up to date reliably.So I did what any self-respecting programmer does and turned to Google. I found some interesting info on the subject of getting row counts, including some optimizations that I felt [...]</description>
		<content:encoded><![CDATA[<p>[...] up to date reliably.So I did what any self-respecting programmer does and turned to Google. I found some interesting info on the subject of getting row counts, including some optimizations that I felt [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
