<?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: How much space does empty Innodb table take ?</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2008/12/16/how-much-space-does-empty-innodb-table-take/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2008/12/16/how-much-space-does-empty-innodb-table-take/</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: Heidi Schmidt</title>
		<link>http://www.mysqlperformanceblog.com/2008/12/16/how-much-space-does-empty-innodb-table-take/comment-page-1/#comment-552736</link>
		<dc:creator>Heidi Schmidt</dc:creator>
		<pubDate>Thu, 30 Apr 2009 19:15:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=563#comment-552736</guid>
		<description>We&#039;ve been using Innodb tables and finding that the mix of federated and innodb makes any attempt at reporting on innodb via information_schema useless.

Has anyone run across federated tables causing the inability to report anything useful from information_schema? 
What I have found is that *AnythinG* more complicated than a select table_name, table_schema, engine (no like statements, concat, or math on the fly will not work -- see below for the concat ex) 

I have and wonder if there is a good work around for 5.1.30 
mysql  Ver 14.14 Distrib 5.1.30, for unknown-linux-gnu (x86_64) using readline 5.1

All these wonderful ideas to monitor growth seem to get whacked when I run specific queries. Some queries to information_schema are ok though so it isn&#039;t consistently and completely broken. 

I&#039;ve tried to dump the entire set of databases with triggers and functions (-R) to search for it and that won&#039;t work even with --no-data and --force 

One, this db.acct_set table does not exist because there is no database db. I assume it could be defined anywhere.
Two, the obscure error 1146 (select error) and 1431 (error on mysqldump) don&#039;t get me very far 

mysql&gt; SELECT concat(table_schema,&#039;.&#039;,table_name),concat(round(table_rows/1000000,2),&#039;M&#039;) rows,concat(round(data_length/(1024*1024*1024),2),&#039;G&#039;) DATA,concat(round(index_length/(1024*1024*1024),2),&#039;G&#039;) idx,concat(round((data_length+index_length)/(1024*1024*1024),2),&#039;G&#039;) total_size,round(index_length/data_length,2) idxfrac FROM information_schema.TABLES ORDER BY data_length+index_length DESC LIMIT 10;
ERROR 1431 (HY000): The foreign data source you are trying to reference does not exist. Data source error:  error: 1146  &#039;Table &#039;db.acct_set&#039; doesn&#039;t exist&#039;

mysql&gt; desc db.acct_set;
ERROR 1146 (42S02): Table &#039;manhunt.v4_account_settings&#039; doesn&#039;t exist</description>
		<content:encoded><![CDATA[<p>We&#8217;ve been using Innodb tables and finding that the mix of federated and innodb makes any attempt at reporting on innodb via information_schema useless.</p>
<p>Has anyone run across federated tables causing the inability to report anything useful from information_schema?<br />
What I have found is that *AnythinG* more complicated than a select table_name, table_schema, engine (no like statements, concat, or math on the fly will not work &#8212; see below for the concat ex) </p>
<p>I have and wonder if there is a good work around for 5.1.30<br />
mysql  Ver 14.14 Distrib 5.1.30, for unknown-linux-gnu (x86_64) using readline 5.1</p>
<p>All these wonderful ideas to monitor growth seem to get whacked when I run specific queries. Some queries to information_schema are ok though so it isn&#8217;t consistently and completely broken. </p>
<p>I&#8217;ve tried to dump the entire set of databases with triggers and functions (-R) to search for it and that won&#8217;t work even with &#8211;no-data and &#8211;force </p>
<p>One, this db.acct_set table does not exist because there is no database db. I assume it could be defined anywhere.<br />
Two, the obscure error 1146 (select error) and 1431 (error on mysqldump) don&#8217;t get me very far </p>
<p>mysql&gt; SELECT concat(table_schema,&#8217;.',table_name),concat(round(table_rows/1000000,2),&#8217;M') rows,concat(round(data_length/(1024*1024*1024),2),&#8217;G') DATA,concat(round(index_length/(1024*1024*1024),2),&#8217;G') idx,concat(round((data_length+index_length)/(1024*1024*1024),2),&#8217;G') total_size,round(index_length/data_length,2) idxfrac FROM information_schema.TABLES ORDER BY data_length+index_length DESC LIMIT 10;<br />
ERROR 1431 (HY000): The foreign data source you are trying to reference does not exist. Data source error:  error: 1146  &#8216;Table &#8216;db.acct_set&#8217; doesn&#8217;t exist&#8217;</p>
<p>mysql&gt; desc db.acct_set;<br />
ERROR 1146 (42S02): Table &#8216;manhunt.v4_account_settings&#8217; doesn&#8217;t exist</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2008/12/16/how-much-space-does-empty-innodb-table-take/comment-page-1/#comment-416635</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Thu, 18 Dec 2008 16:32:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=563#comment-416635</guid>
		<description>Pete,

In the recent Innodb versions the NULL values are not simply not stored.  Format will be something like column 1 value 2,  column 10 value 3  skipping all 8 NULL columns in between.</description>
		<content:encoded><![CDATA[<p>Pete,</p>
<p>In the recent Innodb versions the NULL values are not simply not stored.  Format will be something like column 1 value 2,  column 10 value 3  skipping all 8 NULL columns in between.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete</title>
		<link>http://www.mysqlperformanceblog.com/2008/12/16/how-much-space-does-empty-innodb-table-take/comment-page-1/#comment-416553</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Thu, 18 Dec 2008 14:22:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=563#comment-416553</guid>
		<description>Related question: what is the storage cost for sparse INNODb tables, for example tables with 20 columns where 18 often contain NULL values?  Is space pre-allocated?</description>
		<content:encoded><![CDATA[<p>Related question: what is the storage cost for sparse INNODb tables, for example tables with 20 columns where 18 often contain NULL values?  Is space pre-allocated?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2008/12/16/how-much-space-does-empty-innodb-table-take/comment-page-1/#comment-414829</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Wed, 17 Dec 2008 06:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=563#comment-414829</guid>
		<description>Shlomi,

For large tables the difference between reported size and physical size may be insignificant this is true. 

However there are very different applications around the world.  There are applications which have hundreds of thousands and millions of tables. For these this difference is significant.</description>
		<content:encoded><![CDATA[<p>Shlomi,</p>
<p>For large tables the difference between reported size and physical size may be insignificant this is true. </p>
<p>However there are very different applications around the world.  There are applications which have hundreds of thousands and millions of tables. For these this difference is significant.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shlomi Noach</title>
		<link>http://www.mysqlperformanceblog.com/2008/12/16/how-much-space-does-empty-innodb-table-take/comment-page-1/#comment-414816</link>
		<dc:creator>Shlomi Noach</dc:creator>
		<pubDate>Wed, 17 Dec 2008 06:17:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=563#comment-414816</guid>
		<description>Peter, very interesting,

On large tables I have found that the difference is insignificant. There&#039;s always these one or two very large tables which consume most disk space, and when considering disk limitations, they are the one being taken into account.

Did you happen a lot on databases where there were many small tables, and which constituted the majority of disk space?</description>
		<content:encoded><![CDATA[<p>Peter, very interesting,</p>
<p>On large tables I have found that the difference is insignificant. There&#8217;s always these one or two very large tables which consume most disk space, and when considering disk limitations, they are the one being taken into account.</p>
<p>Did you happen a lot on databases where there were many small tables, and which constituted the majority of disk space?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
