<?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: SHOW STATUS WHERE&#8230;.</title>
	<atom:link href="http://www.pythian.com/news/1222/show-status-where/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/1222/show-status-where/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Fri, 10 Feb 2012 13:01:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: ArtÃ­culos destacados de Septiembre &#124; cambrico.net</title>
		<link>http://www.pythian.com/news/1222/show-status-where/#comment-287150</link>
		<dc:creator>ArtÃ­culos destacados de Septiembre &#124; cambrico.net</dc:creator>
		<pubDate>Mon, 06 Oct 2008 18:30:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1222/show-status-where#comment-287150</guid>
		<description>[...] del SHOW STATUS WHERE en Pythian (en [...]</description>
		<content:encoded><![CDATA[<p>[...] del SHOW STATUS WHERE en Pythian (en [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri Cabral</title>
		<link>http://www.pythian.com/news/1222/show-status-where/#comment-278495</link>
		<dc:creator>Sheeri Cabral</dc:creator>
		<pubDate>Wed, 17 Sep 2008 19:02:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1222/show-status-where#comment-278495</guid>
		<description>Brian --

Thanx for the clarification!  I knew other systems had tables, but 5.1 isn&#039;t in widespread use yet, so I wasn&#039;t exposed to this.</description>
		<content:encoded><![CDATA[<p>Brian &#8211;</p>
<p>Thanx for the clarification!  I knew other systems had tables, but 5.1 isn&#8217;t in widespread use yet, so I wasn&#8217;t exposed to this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Papantonio</title>
		<link>http://www.pythian.com/news/1222/show-status-where/#comment-278474</link>
		<dc:creator>Brian Papantonio</dc:creator>
		<pubDate>Wed, 17 Sep 2008 17:59:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1222/show-status-where#comment-278474</guid>
		<description>He meant to use the information_schema.global/session_status tables.  They aren&#039;t available until MySQL 5.1.12, but other DBMSs have had them for a while.

http://dev.mysql.com/doc/refman/5.1/en/status-table.html

There&#039;s really no advantage over using SHOW STATUS ... WHERE since you aren&#039;t going to join this table into another table. It will probably be even slower.</description>
		<content:encoded><![CDATA[<p>He meant to use the information_schema.global/session_status tables.  They aren&#8217;t available until MySQL 5.1.12, but other DBMSs have had them for a while.</p>
<p><a href="http://dev.mysql.com/doc/refman/5.1/en/status-table.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.1/en/status-table.html</a></p>
<p>There&#8217;s really no advantage over using SHOW STATUS &#8230; WHERE since you aren&#8217;t going to join this table into another table. It will probably be even slower.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri Cabral</title>
		<link>http://www.pythian.com/news/1222/show-status-where/#comment-277348</link>
		<dc:creator>Sheeri Cabral</dc:creator>
		<pubDate>Mon, 15 Sep 2008 13:15:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1222/show-status-where#comment-277348</guid>
		<description>p --

A view definition statement can only take a SELECT statement, so if you mean we should do 

CREATE VIEW v_status AS SHOW STATUS;

then that won&#039;t work.  Or did you have something else in mind?</description>
		<content:encoded><![CDATA[<p>p &#8211;</p>
<p>A view definition statement can only take a SELECT statement, so if you mean we should do </p>
<p>CREATE VIEW v_status AS SHOW STATUS;</p>
<p>then that won&#8217;t work.  Or did you have something else in mind?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: p</title>
		<link>http://www.pythian.com/news/1222/show-status-where/#comment-276642</link>
		<dc:creator>p</dc:creator>
		<pubDate>Sat, 13 Sep 2008 22:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1222/show-status-where#comment-276642</guid>
		<description>No need for like or where, simply implement that as an information_schema view, and you&#039;ll automagically have a standard synthax which can be handled also by reporting tools.
Too difficult?</description>
		<content:encoded><![CDATA[<p>No need for like or where, simply implement that as an information_schema view, and you&#8217;ll automagically have a standard synthax which can be handled also by reporting tools.<br />
Too difficult?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri Cabral</title>
		<link>http://www.pythian.com/news/1222/show-status-where/#comment-276552</link>
		<dc:creator>Sheeri Cabral</dc:creator>
		<pubDate>Sat, 13 Sep 2008 17:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1222/show-status-where#comment-276552</guid>
		<description>Thanx!  This is very important information, so I&#039;ll show some examples:

mysql&gt; show global status like &#039;Handler_read_rnd_next&#039;;
+-----------------------+-------+
&#124; Variable_name         &#124; Value &#124;
+-----------------------+-------+
&#124; Handler_read_rnd_next &#124; 13010 &#124;
+-----------------------+-------+
1 row in set (0.00 sec)

mysql&gt; show global status where Variable_name=&#039;Handler_read_rnd_next&#039;;
+-----------------------+-------+
&#124; Variable_name         &#124; Value &#124;
+-----------------------+-------+
&#124; Handler_read_rnd_next &#124; 13012 &#124;
+-----------------------+-------+
1 row in set (0.08 sec)

That&#039;s a HUGE performance difference.  So yes, using LIKE when you can is useful.  WHERE gives you a lot more POWER than LIKE, but it comes at a cost.</description>
		<content:encoded><![CDATA[<p>Thanx!  This is very important information, so I&#8217;ll show some examples:</p>
<p>mysql> show global status like &#8216;Handler_read_rnd_next&#8217;;<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+<br />
| Variable_name         | Value |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+<br />
| Handler_read_rnd_next | 13010 |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+<br />
1 row in set (0.00 sec)</p>
<p>mysql> show global status where Variable_name=&#8217;Handler_read_rnd_next&#8217;;<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+<br />
| Variable_name         | Value |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+<br />
| Handler_read_rnd_next | 13012 |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+<br />
1 row in set (0.08 sec)</p>
<p>That&#8217;s a HUGE performance difference.  So yes, using LIKE when you can is useful.  WHERE gives you a lot more POWER than LIKE, but it comes at a cost.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ryan</title>
		<link>http://www.pythian.com/news/1222/show-status-where/#comment-276513</link>
		<dc:creator>ryan</dc:creator>
		<pubDate>Sat, 13 Sep 2008 15:54:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1222/show-status-where#comment-276513</guid>
		<description>For the SHOW command, LIKE seems to be more efficient with the handler than WHERE.

Compare the incremental output of:
show global status like &#039;Handler_read_rnd_next&#039;;
show global status where Variable_name=&#039;Handler_read_rnd_next&#039;;

You can see by the output there that WHERE seems to act more like HAVING.  Unlikely to matter when just ad-hoc investigating something, but might make a minor impact if you script something to run every second.</description>
		<content:encoded><![CDATA[<p>For the SHOW command, LIKE seems to be more efficient with the handler than WHERE.</p>
<p>Compare the incremental output of:<br />
show global status like &#8216;Handler_read_rnd_next&#8217;;<br />
show global status where Variable_name=&#8217;Handler_read_rnd_next&#8217;;</p>
<p>You can see by the output there that WHERE seems to act more like HAVING.  Unlikely to matter when just ad-hoc investigating something, but might make a minor impact if you script something to run every second.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

