<?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: Query Profiling with MySQL: Bypassing caches</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2007/09/12/query-profiling-with-mysql-bypassing-caches/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2007/09/12/query-profiling-with-mysql-bypassing-caches/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:23:57 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jonathon Hill &#187; Speed-testing a query? Flush your MySQL caches</title>
		<link>http://www.mysqlperformanceblog.com/2007/09/12/query-profiling-with-mysql-bypassing-caches/comment-page-1/#comment-619687</link>
		<dc:creator>Jonathon Hill &#187; Speed-testing a query? Flush your MySQL caches</dc:creator>
		<pubDate>Wed, 29 Jul 2009 03:40:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/09/12/query-profiling-with-mysql-bypassing-caches/#comment-619687</guid>
		<description>[...] to the MySQL Performance Blog for this [...]</description>
		<content:encoded><![CDATA[<p>[...] to the MySQL Performance Blog for this [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2007/09/12/query-profiling-with-mysql-bypassing-caches/comment-page-1/#comment-392675</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Wed, 26 Nov 2008 18:19:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/09/12/query-profiling-with-mysql-bypassing-caches/#comment-392675</guid>
		<description>JM,

Think about it practically - DBMS works through OS using its caches.  To get query uncached you need to clean these caches. for MyISAM you can do SET GLOBAL key_buffer_size=0 and when set it back to default. You can also do  cat 3 &gt; /proc/sys/vm/drop_caches  on Linux to clear caches however you do not have anything for Innodb.

In practice however fully empty case is not that interesting because query is likely to have something cached, dictionary information etc.  I would  have Slow Query log enabled with Percona Patches so you can see how many IOs query does etc.     When query optimization usually can happen analytical way - if you see from EXPLAIN query scans 1000000 rows you do not need it to be IO bound to optimize it you can just estimate how it would be :)</description>
		<content:encoded><![CDATA[<p>JM,</p>
<p>Think about it practically &#8211; DBMS works through OS using its caches.  To get query uncached you need to clean these caches. for MyISAM you can do SET GLOBAL key_buffer_size=0 and when set it back to default. You can also do  cat 3 > /proc/sys/vm/drop_caches  on Linux to clear caches however you do not have anything for Innodb.</p>
<p>In practice however fully empty case is not that interesting because query is likely to have something cached, dictionary information etc.  I would  have Slow Query log enabled with Percona Patches so you can see how many IOs query does etc.     When query optimization usually can happen analytical way &#8211; if you see from EXPLAIN query scans 1000000 rows you do not need it to be IO bound to optimize it you can just estimate how it would be <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JM</title>
		<link>http://www.mysqlperformanceblog.com/2007/09/12/query-profiling-with-mysql-bypassing-caches/comment-page-1/#comment-392594</link>
		<dc:creator>JM</dc:creator>
		<pubDate>Wed, 26 Nov 2008 15:25:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/09/12/query-profiling-with-mysql-bypassing-caches/#comment-392594</guid>
		<description>I have a web app which doesn&#039;t have a very large client base but each user can potentially query a large chunk of data.  So the most important thing is when the user queries a given chunk the first time.  Once it&#039;s cached it&#039;s of course orders of magnitude faster, but it&#039;s the initial query that I need to optimize.  I imagined that having the ability to profile a query should be pretty basic in a rdbms.</description>
		<content:encoded><![CDATA[<p>I have a web app which doesn&#8217;t have a very large client base but each user can potentially query a large chunk of data.  So the most important thing is when the user queries a given chunk the first time.  Once it&#8217;s cached it&#8217;s of course orders of magnitude faster, but it&#8217;s the initial query that I need to optimize.  I imagined that having the ability to profile a query should be pretty basic in a rdbms.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2007/09/12/query-profiling-with-mysql-bypassing-caches/comment-page-1/#comment-391758</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Tue, 25 Nov 2008 19:04:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/09/12/query-profiling-with-mysql-bypassing-caches/#comment-391758</guid>
		<description>... In the same sense as with any other database.  Practically everything has caches.

To do real profiling you need to profile real query mix which will have each query having appropriate cache/hit ratio  not running one query in the loop and assuming results will be fine.</description>
		<content:encoded><![CDATA[<p>&#8230; In the same sense as with any other database.  Practically everything has caches.</p>
<p>To do real profiling you need to profile real query mix which will have each query having appropriate cache/hit ratio  not running one query in the loop and assuming results will be fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JM</title>
		<link>http://www.mysqlperformanceblog.com/2007/09/12/query-profiling-with-mysql-bypassing-caches/comment-page-1/#comment-391747</link>
		<dc:creator>JM</dc:creator>
		<pubDate>Tue, 25 Nov 2008 18:08:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/09/12/query-profiling-with-mysql-bypassing-caches/#comment-391747</guid>
		<description>So does that mean that there is no way to profile a query in mysql?  I can&#039;t be expected to reboot my system every time I want to tweak a query and test if it runs faster!</description>
		<content:encoded><![CDATA[<p>So does that mean that there is no way to profile a query in mysql?  I can&#8217;t be expected to reboot my system every time I want to tweak a query and test if it runs faster!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pythian Group Blog &#187; Log Buffer #62: a Carnival of the Vanities for DBAs</title>
		<link>http://www.mysqlperformanceblog.com/2007/09/12/query-profiling-with-mysql-bypassing-caches/comment-page-1/#comment-167687</link>
		<dc:creator>Pythian Group Blog &#187; Log Buffer #62: a Carnival of the Vanities for DBAs</dc:creator>
		<pubDate>Fri, 14 Sep 2007 17:08:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/09/12/query-profiling-with-mysql-bypassing-caches/#comment-167687</guid>
		<description>[...] MySQL Performance Blog likewise offers some tips on bypassing caches at various system [...]</description>
		<content:encoded><![CDATA[<p>[...] MySQL Performance Blog likewise offers some tips on bypassing caches at various system [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
