<?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: Opening Tables  scalability</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/</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: Derek Organ</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/comment-page-1/#comment-669566</link>
		<dc:creator>Derek Organ</dc:creator>
		<pubDate>Tue, 27 Oct 2009 15:42:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/#comment-669566</guid>
		<description>We work on the basis of a different database for each new company account. The problem I&#039;m starting to have with 5000 databases is the show databases and use database commands are taking a long time to run and are showing up in my slow-queries log.  Are there any tips for making this go faster?</description>
		<content:encoded><![CDATA[<p>We work on the basis of a different database for each new company account. The problem I&#8217;m starting to have with 5000 databases is the show databases and use database commands are taking a long time to run and are showing up in my slow-queries log.  Are there any tips for making this go faster?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: My &#8220;hot&#8221; list for next InnoDB features &#124; MySQL Performance Blog</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/comment-page-1/#comment-525918</link>
		<dc:creator>My &#8220;hot&#8221; list for next InnoDB features &#124; MySQL Performance Blog</dc:creator>
		<pubDate>Tue, 31 Mar 2009 21:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/#comment-525918</guid>
		<description>[...] bad at start time, when InnoDB takes probes during opening table, as it is slow operation. See also http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/. Partially it can be fixed by recent patches by enabling / disabling probes and changing count of [...]</description>
		<content:encoded><![CDATA[<p>[...] bad at start time, when InnoDB takes probes during opening table, as it is slow operation. See also <a href="http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/" rel="nofollow">http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/</a>. Partially it can be fixed by recent patches by enabling / disabling probes and changing count of [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/comment-page-1/#comment-280461</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Thu, 17 Apr 2008 16:31:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/#comment-280461</guid>
		<description>MySQL only opens tables once you access them.</description>
		<content:encoded><![CDATA[<p>MySQL only opens tables once you access them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: art</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/comment-page-1/#comment-280106</link>
		<dc:creator>art</dc:creator>
		<pubDate>Thu, 17 Apr 2008 11:13:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/#comment-280106</guid>
		<description>Does mysql open all innodb tables at startup or only with query on that particular table?</description>
		<content:encoded><![CDATA[<p>Does mysql open all innodb tables at startup or only with query on that particular table?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sysadm</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/comment-page-1/#comment-90484</link>
		<dc:creator>Sysadm</dc:creator>
		<pubDate>Tue, 20 Mar 2007 19:29:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/#comment-90484</guid>
		<description>We have forum hosting community - around 3 500 000 myisam tables per each server. Each forum gets it&#039;s own database (~90 tables in one database) . We have similar issue - when server is overloaded, status of all threads in &quot;show processlist&quot; is &quot;opening tables&quot;. We have many php and system tweaks but this problem seems to be hard to resolve without MySQL source code rewrite -we have not enought knowledge to do it. It&#039;s MySQL 4.0.

We have tried to increase table_cache but it doesn&#039;t make any sense with such many useable tables - best performance setting for us is table_cache=0.

Now it&#039;s hosted on Linux 2.6 &amp; XFS which supports more than 32K subdirectories in one directory. Reiserfs supports too, but it&#039;s terribly unstable within such load and brokes it&#039;s journal itself very often, and reiserfs is not visible faster in this than XFS.

I&#039;m afraid of putting such many tables into one database - this cause worse performance problems - like hosting &gt;10 000 000 files in one directory (3 files per table)...</description>
		<content:encoded><![CDATA[<p>We have forum hosting community &#8211; around 3 500 000 myisam tables per each server. Each forum gets it&#8217;s own database (~90 tables in one database) . We have similar issue &#8211; when server is overloaded, status of all threads in &#8220;show processlist&#8221; is &#8220;opening tables&#8221;. We have many php and system tweaks but this problem seems to be hard to resolve without MySQL source code rewrite -we have not enought knowledge to do it. It&#8217;s MySQL 4.0.</p>
<p>We have tried to increase table_cache but it doesn&#8217;t make any sense with such many useable tables &#8211; best performance setting for us is table_cache=0.</p>
<p>Now it&#8217;s hosted on Linux 2.6 &amp; XFS which supports more than 32K subdirectories in one directory. Reiserfs supports too, but it&#8217;s terribly unstable within such load and brokes it&#8217;s journal itself very often, and reiserfs is not visible faster in this than XFS.</p>
<p>I&#8217;m afraid of putting such many tables into one database &#8211; this cause worse performance problems &#8211; like hosting &gt;10 000 000 files in one directory (3 files per table)&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/comment-page-1/#comment-78513</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sun, 11 Mar 2007 12:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/#comment-78513</guid>
		<description>This actually was always curious for me why Wordpress MU was not fixed to operate with smaller amount of tables rather than create single table set for each users.

You can blame MySQL for certain performance problems but generally dealing with a lot of files is slower with most of file systems.</description>
		<content:encoded><![CDATA[<p>This actually was always curious for me why Wordpress MU was not fixed to operate with smaller amount of tables rather than create single table set for each users.</p>
<p>You can blame MySQL for certain performance problems but generally dealing with a lot of files is slower with most of file systems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hakan</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/comment-page-1/#comment-78344</link>
		<dc:creator>Hakan</dc:creator>
		<pubDate>Sun, 11 Mar 2007 10:25:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/#comment-78344</guid>
		<description>Wordpress.com hosts a free blog system running WordPress Mu (multiuser wordpress) and it creates a new set of tables for every new blog.

/Hakan</description>
		<content:encoded><![CDATA[<p>Wordpress.com hosts a free blog system running WordPress Mu (multiuser wordpress) and it creates a new set of tables for every new blog.</p>
<p>/Hakan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/comment-page-1/#comment-74056</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Thu, 08 Mar 2007 08:36:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/#comment-74056</guid>
		<description>Steven,

Alexey is saying MySQL Privilege system may be slow with so huge number of databases and a lot of grants on database level. 

Regarding Matt, as I understand Matt is using standard software as a base which has its own set of tables for each user.  If you have something custom having so many tables is of course not good idea.</description>
		<content:encoded><![CDATA[<p>Steven,</p>
<p>Alexey is saying MySQL Privilege system may be slow with so huge number of databases and a lot of grants on database level. </p>
<p>Regarding Matt, as I understand Matt is using standard software as a base which has its own set of tables for each user.  If you have something custom having so many tables is of course not good idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Roussey</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/comment-page-1/#comment-73593</link>
		<dc:creator>Steven Roussey</dc:creator>
		<pubDate>Thu, 08 Mar 2007 00:05:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/#comment-73593</guid>
		<description>The 32000 limit is in ext2 and ext3 (still not fixed for ext4, although there is an old patch to make it 64000). If you happen to be using ext as a file system with a lot of either databases or file systems, you might try adding dir_index and then do a tune. Don&#039;t know what the speed up is, your mileage may vary.

Matt: why 5 million tables? We host 500,000 forums and don&#039;t give each one its own set of tables, it was just too much work and too slow and complex.</description>
		<content:encoded><![CDATA[<p>The 32000 limit is in ext2 and ext3 (still not fixed for ext4, although there is an old patch to make it 64000). If you happen to be using ext as a file system with a lot of either databases or file systems, you might try adding dir_index and then do a tune. Don&#8217;t know what the speed up is, your mileage may vary.</p>
<p>Matt: why 5 million tables? We host 500,000 forums and don&#8217;t give each one its own set of tables, it was just too much work and too slow and complex.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/comment-page-1/#comment-25643</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Thu, 28 Dec 2006 12:46:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/21/opening-tables-scalability/#comment-25643</guid>
		<description>Alexey, 

OK This is different story when privilege check system comes into play.  I guess it was not optimized well to handle such large amount of tables. I remember seeing quite a few of list scans when I worked with code few years ago. 
I would suggest to post it as a bug and hope it would be fixed sometime.</description>
		<content:encoded><![CDATA[<p>Alexey, </p>
<p>OK This is different story when privilege check system comes into play.  I guess it was not optimized well to handle such large amount of tables. I remember seeing quite a few of list scans when I worked with code few years ago.<br />
I would suggest to post it as a bug and hope it would be fixed sometime.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
