<?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: The confusion over global and session status</title>
	<atom:link href="http://ronaldbradford.com/blog/the-confusion-over-global-and-session-status-2009-07-03/feed/" rel="self" type="application/rss+xml" />
	<link>http://ronaldbradford.com/blog/the-confusion-over-global-and-session-status-2009-07-03/</link>
	<description>Expert times and information on MySQL</description>
	<lastBuildDate>Fri, 12 Mar 2010 19:35:19 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Arjen Lentz</title>
		<link>http://ronaldbradford.com/blog/the-confusion-over-global-and-session-status-2009-07-03/comment-page-1/#comment-592</link>
		<dc:creator>Arjen Lentz</dc:creator>
		<pubDate>Fri, 03 Jul 2009 22:05:51 +0000</pubDate>
		<guid isPermaLink="false">http://ronaldbradford.com/blog/?p=1714#comment-592</guid>
		<description>What Mark says.
The microslow patch is more effective in finding tmp table use, and it can distinguish between mem and disk also.
Diddums for sorts.</description>
		<content:encoded><![CDATA[<p>What Mark says.<br />
The microslow patch is more effective in finding tmp table use, and it can distinguish between mem and disk also.<br />
Diddums for sorts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Leith</title>
		<link>http://ronaldbradford.com/blog/the-confusion-over-global-and-session-status-2009-07-03/comment-page-1/#comment-593</link>
		<dc:creator>Mark Leith</dc:creator>
		<pubDate>Fri, 03 Jul 2009 18:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://ronaldbradford.com/blog/?p=1714#comment-593</guid>
		<description>Hey Ronald,

Yes, previously they incremented both GLOBAL and SESSION outputs - they were fixed as part of http://bugs.mysql.com/bug.php?id=10210 and http://bugs.mysql.com/bug.php?id=29153.

It&#039;s not just the tmp tables either, it&#039;s also things like Handler_write, and Handler_read_rnd_next. The reason?

SHOW (and INFORMATION_SCHEMA) create temporary tables in the background, fill them with rows, and then select * from them to show the output to the user.

For debugging as you describe, you do not want SESSION based counters to increment on top of what you are trying to debug - whilst at the GLOBAL level you want to know all actions that the server was doing.

The fix actually makes it slightly worse to discount any monitoring action statistics as well (you can not take a monitoring session&#039;s SESSION STATUS and subtract it from a GLOBAL STATUS for the thread local variables).

Cheers,

Mark</description>
		<content:encoded><![CDATA[<p>Hey Ronald,</p>
<p>Yes, previously they incremented both GLOBAL and SESSION outputs &#8211; they were fixed as part of <a href="http://bugs.mysql.com/bug.php?id=10210" rel="nofollow">http://bugs.mysql.com/bug.php?id=10210</a> and <a href="http://bugs.mysql.com/bug.php?id=29153" rel="nofollow">http://bugs.mysql.com/bug.php?id=29153</a>.</p>
<p>It&#8217;s not just the tmp tables either, it&#8217;s also things like Handler_write, and Handler_read_rnd_next. The reason?</p>
<p>SHOW (and INFORMATION_SCHEMA) create temporary tables in the background, fill them with rows, and then select * from them to show the output to the user.</p>
<p>For debugging as you describe, you do not want SESSION based counters to increment on top of what you are trying to debug &#8211; whilst at the GLOBAL level you want to know all actions that the server was doing.</p>
<p>The fix actually makes it slightly worse to discount any monitoring action statistics as well (you can not take a monitoring session&#8217;s SESSION STATUS and subtract it from a GLOBAL STATUS for the thread local variables).</p>
<p>Cheers,</p>
<p>Mark</p>
]]></content:encoded>
	</item>
</channel>
</rss>
