<?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 many partitions can you have ?</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2009/12/05/how-many-partitions-can-you-have/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2009/12/05/how-many-partitions-can-you-have/</link>
	<description>Percona&#039;s MySQL &#38; InnoDB performance and scalability blog</description>
	<lastBuildDate>Sat, 11 Feb 2012 16:45:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: pcrews</title>
		<link>http://www.mysqlperformanceblog.com/2009/12/05/how-many-partitions-can-you-have/comment-page-1/#comment-869015</link>
		<dc:creator>pcrews</dc:creator>
		<pubDate>Tue, 03 Jan 2012 23:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1828#comment-869015</guid>
		<description>http://bugs.mysql.com/bug.php?id=37252</description>
		<content:encoded><![CDATA[<p><a href="http://bugs.mysql.com/bug.php?id=37252" rel="nofollow">http://bugs.mysql.com/bug.php?id=37252</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oliver</title>
		<link>http://www.mysqlperformanceblog.com/2009/12/05/how-many-partitions-can-you-have/comment-page-1/#comment-718844</link>
		<dc:creator>oliver</dc:creator>
		<pubDate>Wed, 03 Feb 2010 18:50:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1828#comment-718844</guid>
		<description>what you mean with having multible Files running partitioning? even with InnoDB? how?

regards</description>
		<content:encoded><![CDATA[<p>what you mean with having multible Files running partitioning? even with InnoDB? how?</p>
<p>regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tonico</title>
		<link>http://www.mysqlperformanceblog.com/2009/12/05/how-many-partitions-can-you-have/comment-page-1/#comment-704558</link>
		<dc:creator>Tonico</dc:creator>
		<pubDate>Sat, 02 Jan 2010 00:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1828#comment-704558</guid>
		<description>Do not jump into wrong conclusions. On a production system, if you are partitioning, one of the benefits of having partitioning is to point each partition to a separate volume with eventually independent disk controllers. The level of parallel disk access would drastically benefit performance. If you have multiple partitions on the same disk/disk controller you are getting high I/O waits.</description>
		<content:encoded><![CDATA[<p>Do not jump into wrong conclusions. On a production system, if you are partitioning, one of the benefits of having partitioning is to point each partition to a separate volume with eventually independent disk controllers. The level of parallel disk access would drastically benefit performance. If you have multiple partitions on the same disk/disk controller you are getting high I/O waits.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikael</title>
		<link>http://www.mysqlperformanceblog.com/2009/12/05/how-many-partitions-can-you-have/comment-page-1/#comment-694925</link>
		<dc:creator>Mikael</dc:creator>
		<pubDate>Sat, 12 Dec 2009 12:23:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1828#comment-694925</guid>
		<description>See BUG#48846 for some interesting development in this area</description>
		<content:encoded><![CDATA[<p>See BUG#48846 for some interesting development in this area</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/12/05/how-many-partitions-can-you-have/comment-page-1/#comment-692164</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Tue, 08 Dec 2009 03:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1828#comment-692164</guid>
		<description>Harrison,

I just checked I do not see any difference with LOCK TABLES and without LOCK TABLE - I&#039;m doing inserts by 1000 rows in the batch.  As I mentioned I tested and I still see overhead with even more bulky statements so it looks like there is some non negligable overhead per row (not only per statement)</description>
		<content:encoded><![CDATA[<p>Harrison,</p>
<p>I just checked I do not see any difference with LOCK TABLES and without LOCK TABLE &#8211; I&#8217;m doing inserts by 1000 rows in the batch.  As I mentioned I tested and I still see overhead with even more bulky statements so it looks like there is some non negligable overhead per row (not only per statement)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/12/05/how-many-partitions-can-you-have/comment-page-1/#comment-692158</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Tue, 08 Dec 2009 03:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1828#comment-692158</guid>
		<description>Harrison,

I kind of checked that by using inserts with different level of &quot;bulkiness&quot;  Table lock should be happening only once per statement hence overhead should be lower if you have more bulky statements which does not seems to be the case in this case. Also it does not explain increase cost of update.</description>
		<content:encoded><![CDATA[<p>Harrison,</p>
<p>I kind of checked that by using inserts with different level of &#8220;bulkiness&#8221;  Table lock should be happening only once per statement hence overhead should be lower if you have more bulky statements which does not seems to be the case in this case. Also it does not explain increase cost of update.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Britt</title>
		<link>http://www.mysqlperformanceblog.com/2009/12/05/how-many-partitions-can-you-have/comment-page-1/#comment-691945</link>
		<dc:creator>Britt</dc:creator>
		<pubDate>Mon, 07 Dec 2009 18:02:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1828#comment-691945</guid>
		<description>Say I have a table with 100 partitions, partitioned by some column id.  If I look up rows from this partitioned table using an IN clause with 200 ids, it seems like it first figures out which partitions it needs to check, then looks in each partition for all 200 ids, causing a lot of index reads and slowness.  When I split the large select query manually to do one query per partition, I saw a big speedup.  Maybe something similar is happening with your insert...update?</description>
		<content:encoded><![CDATA[<p>Say I have a table with 100 partitions, partitioned by some column id.  If I look up rows from this partitioned table using an IN clause with 200 ids, it seems like it first figures out which partitions it needs to check, then looks in each partition for all 200 ids, causing a lot of index reads and slowness.  When I split the large select query manually to do one query per partition, I saw a big speedup.  Maybe something similar is happening with your insert&#8230;update?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harrison Fisk</title>
		<link>http://www.mysqlperformanceblog.com/2009/12/05/how-many-partitions-can-you-have/comment-page-1/#comment-691935</link>
		<dc:creator>Harrison Fisk</dc:creator>
		<pubDate>Mon, 07 Dec 2009 17:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1828#comment-691935</guid>
		<description>Have you seen http://bugs.mysql.com/bug.php?id=37252 ?  This implies it is the locking that causes the slowdown (even for InnoDB/Falcon).  Can you try your test with locking the table first, doing the INSERT ON DUPLICATE KEY UPDATE statements, and then unlock?</description>
		<content:encoded><![CDATA[<p>Have you seen <a href="http://bugs.mysql.com/bug.php?id=37252" rel="nofollow">http://bugs.mysql.com/bug.php?id=37252</a> ?  This implies it is the locking that causes the slowdown (even for InnoDB/Falcon).  Can you try your test with locking the table first, doing the INSERT ON DUPLICATE KEY UPDATE statements, and then unlock?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/12/05/how-many-partitions-can-you-have/comment-page-1/#comment-691925</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Mon, 07 Dec 2009 16:47:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1828#comment-691925</guid>
		<description>Istvan,

What you&#039;re saying applies to not partitioned key. If you lookup by the key which you partition on only one partition should be looked up. If it is other key it has to check all partition which is indeed can be significant overhead.  I planned running some tests on it later.</description>
		<content:encoded><![CDATA[<p>Istvan,</p>
<p>What you&#8217;re saying applies to not partitioned key. If you lookup by the key which you partition on only one partition should be looked up. If it is other key it has to check all partition which is indeed can be significant overhead.  I planned running some tests on it later.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Istvan Podor</title>
		<link>http://www.mysqlperformanceblog.com/2009/12/05/how-many-partitions-can-you-have/comment-page-1/#comment-691642</link>
		<dc:creator>Istvan Podor</dc:creator>
		<pubDate>Mon, 07 Dec 2009 06:19:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1828#comment-691642</guid>
		<description>Hey Peter,

In my experience it&#039;s not just about writes. If you have 1k table and with a lots of data (50k rows) per each table and you try to query against an indexed data, mysql will go trough each index and if the index&#039;s size is around a few megabytes for each table, this can dramatically slow down the usually fast unique/primary key look ups (as all partition(table) got its own indexes right?). It was the same for me with myisam-merge (what we could think about like an earlier partitioned table). And of course, we can&#039;t forget about if you have a lots of queries where it have to go trough all of the indexes for each partition, that will screw up your index caches and may eat up a lots of memory and decrease your cache hits.

But, benchmark speak :)</description>
		<content:encoded><![CDATA[<p>Hey Peter,</p>
<p>In my experience it&#8217;s not just about writes. If you have 1k table and with a lots of data (50k rows) per each table and you try to query against an indexed data, mysql will go trough each index and if the index&#8217;s size is around a few megabytes for each table, this can dramatically slow down the usually fast unique/primary key look ups (as all partition(table) got its own indexes right?). It was the same for me with myisam-merge (what we could think about like an earlier partitioned table). And of course, we can&#8217;t forget about if you have a lots of queries where it have to go trough all of the indexes for each partition, that will screw up your index caches and may eat up a lots of memory and decrease your cache hits.</p>
<p>But, benchmark speak <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

