<?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: Making changes to many tables at once</title>
	<atom:link href="http://www.xaprb.com/blog/2009/10/29/making-changes-to-many-tables-at-once/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xaprb.com/blog/2009/10/29/making-changes-to-many-tables-at-once/</link>
	<description>Stay curious!</description>
	<lastBuildDate>Thu, 09 Feb 2012 09:56:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Mark Callaghan</title>
		<link>http://www.xaprb.com/blog/2009/10/29/making-changes-to-many-tables-at-once/#comment-17877</link>
		<dc:creator>Mark Callaghan</dc:creator>
		<pubDate>Sun, 21 Feb 2010 17:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=1400#comment-17877</guid>
		<description>I just noticed queries like this in the slow query log. I use 5.0, so the IS query optimization chapter don&#039;t apply. This server has ~10,000 tables, so I assume this query requires ~10,000 open table handler instances.

# Query_time: 6  Lock_time: 0  Rows_sent: 313  Rows_examined: 313
use foobar;
select TABLE_SCHEMA,TABLE_NAME,AVG_ROW_LENGTH,DATA_LENGTH,
TABLE_ROWS,INDEX_LENGTH 
from information_schema.tables 
where table_schema=database();</description>
		<content:encoded><![CDATA[<p>I just noticed queries like this in the slow query log. I use 5.0, so the IS query optimization chapter don&#8217;t apply. This server has ~10,000 tables, so I assume this query requires ~10,000 open table handler instances.</p>
<p># Query_time: 6  Lock_time: 0  Rows_sent: 313  Rows_examined: 313<br />
use foobar;<br />
select TABLE_SCHEMA,TABLE_NAME,AVG_ROW_LENGTH,DATA_LENGTH,<br />
TABLE_ROWS,INDEX_LENGTH<br />
from information_schema.tables<br />
where table_schema=database();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2009/10/29/making-changes-to-many-tables-at-once/#comment-17844</link>
		<dc:creator>Xaprb</dc:creator>
		<pubDate>Fri, 19 Feb 2010 02:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=1400#comment-17844</guid>
		<description>In my opinion SHOW TABLES is a problem when the filesystem starts to have a problem, which is fs-dependent but I don&#039;t think 10k is a huge problem.  SHOW TABLE STATUS depends both on the number of tables and the size of data, in case InnoDB is used and ::info() is called and statistics are re-sampled (which in my experience they usually seem to be, but I haven&#039;t tried to prove that).  Most of what I&#039;ve said on this topic is centered around InnoDB.  I noticed that the manual page about I_S optimizations was not overly InnoDB-conscious.</description>
		<content:encoded><![CDATA[<p>In my opinion SHOW TABLES is a problem when the filesystem starts to have a problem, which is fs-dependent but I don&#8217;t think 10k is a huge problem.  SHOW TABLE STATUS depends both on the number of tables and the size of data, in case InnoDB is used and ::info() is called and statistics are re-sampled (which in my experience they usually seem to be, but I haven&#8217;t tried to prove that).  Most of what I&#8217;ve said on this topic is centered around InnoDB.  I noticed that the manual page about I_S optimizations was not overly InnoDB-conscious.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2009/10/29/making-changes-to-many-tables-at-once/#comment-17842</link>
		<dc:creator>Xaprb</dc:creator>
		<pubDate>Fri, 19 Feb 2010 02:39:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=1400#comment-17842</guid>
		<description>I just read the link Sheeri listed.  I&#039;m dismayed, too.  I wish the data dictionary were stored in InnoDB.  I know, Drizzle.</description>
		<content:encoded><![CDATA[<p>I just read the link Sheeri listed.  I&#8217;m dismayed, too.  I wish the data dictionary were stored in InnoDB.  I know, Drizzle.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Callaghan</title>
		<link>http://www.xaprb.com/blog/2009/10/29/making-changes-to-many-tables-at-once/#comment-17841</link>
		<dc:creator>Mark Callaghan</dc:creator>
		<pubDate>Fri, 19 Feb 2010 02:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=1400#comment-17841</guid>
		<description>At what number of tables does this become a problem? 10,000? 100,000? 1,000,000?</description>
		<content:encoded><![CDATA[<p>At what number of tables does this become a problem? 10,000? 100,000? 1,000,000?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2009/10/29/making-changes-to-many-tables-at-once/#comment-17840</link>
		<dc:creator>Xaprb</dc:creator>
		<pubDate>Fri, 19 Feb 2010 02:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=1400#comment-17840</guid>
		<description>SHOW TABLES is not a huge source of trouble in most cases, because it basically lists the directory and trims off .frm and shows the result.  That is slow in very few cases.  What&#039;s incredibly slow on an increasing number of servers these days is SHOW TABLE STATUS, which lists the directory, iterates the .frm files, creates a handler for each table, and calls ::info() on each handler.  And that is also what INFORMATION_SCHEMA.TABLES does -- not the same thing as SHOW TABLES.</description>
		<content:encoded><![CDATA[<p>SHOW TABLES is not a huge source of trouble in most cases, because it basically lists the directory and trims off .frm and shows the result.  That is slow in very few cases.  What&#8217;s incredibly slow on an increasing number of servers these days is SHOW TABLE STATUS, which lists the directory, iterates the .frm files, creates a handler for each table, and calls ::info() on each handler.  And that is also what INFORMATION_SCHEMA.TABLES does &#8212; not the same thing as SHOW TABLES.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

