<?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: Interesting MySQL and PostgreSQL Benchmarks</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/</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: 旋转木马の阶梯 &#187; Blog Archive &#187; links for 2007-09-18</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/comment-page-1/#comment-169327</link>
		<dc:creator>旋转木马の阶梯 &#187; Blog Archive &#187; links for 2007-09-18</dc:creator>
		<pubDate>Tue, 18 Sep 2007 02:24:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/#comment-169327</guid>
		<description>[...] Interesting MySQL and PostgreSQL Benchmarks From MySQL performance blog. (tags: mysql performance postgresql) [...]</description>
		<content:encoded><![CDATA[<p>[...] Interesting MySQL and PostgreSQL Benchmarks From MySQL performance blog. (tags: mysql performance postgresql) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Senthil</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/comment-page-1/#comment-139894</link>
		<dc:creator>Senthil</dc:creator>
		<pubDate>Tue, 26 Jun 2007 14:00:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/#comment-139894</guid>
		<description>Do you have any numbers on Mysql(MYISAM) vs Postgresql?</description>
		<content:encoded><![CDATA[<p>Do you have any numbers on Mysql(MYISAM) vs Postgresql?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debunking MySQL vs PostgreSQL performance myths at Alex Mayrhofer</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/comment-page-1/#comment-119189</link>
		<dc:creator>Debunking MySQL vs PostgreSQL performance myths at Alex Mayrhofer</dc:creator>
		<pubDate>Sat, 05 May 2007 17:54:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/#comment-119189</guid>
		<description>[...] i lost tons rows in MySQL databases for no reason (admitted, that was version 3.23.something), this article (which in turn cites this test) did definitely put a dirty grin on my [...]</description>
		<content:encoded><![CDATA[<p>[...] i lost tons rows in MySQL databases for no reason (admitted, that was version 3.23.something), this article (which in turn cites this test) did definitely put a dirty grin on my [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aria Kokoschka</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/comment-page-1/#comment-35419</link>
		<dc:creator>Aria Kokoschka</dc:creator>
		<pubDate>Tue, 23 Jan 2007 20:04:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/#comment-35419</guid>
		<description>Solaris has a well-designed and matured threading library as opposed to Linux. Maybe that&#039;s one of the reasons for its performance benchmark.</description>
		<content:encoded><![CDATA[<p>Solaris has a well-designed and matured threading library as opposed to Linux. Maybe that&#8217;s one of the reasons for its performance benchmark.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MySQL Performance Blog &#187; MySQL/Innodb scalability tests after fix</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/comment-page-1/#comment-26256</link>
		<dc:creator>MySQL Performance Blog &#187; MySQL/Innodb scalability tests after fix</dc:creator>
		<pubDate>Wed, 03 Jan 2007 11:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/#comment-26256</guid>
		<description>[...] I already wrote  about interesting benchmarks Tweakers.net have done for MySQL and PostgreSQL with different CPUs. I was in contact with Tweakers.net team to see if they miss something obvious in MySQL settings as well as to let them know the fix is now out for Innodb scalability bug and they can rerun the test to see if there are any difference. [...]</description>
		<content:encoded><![CDATA[<p>[...] I already wrote  about interesting benchmarks Tweakers.net have done for MySQL and PostgreSQL with different CPUs. I was in contact with Tweakers.net team to see if they miss something obvious in MySQL settings as well as to let them know the fix is now out for Innodb scalability bug and they can rerun the test to see if there are any difference. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doomshammer's Weblog</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/comment-page-1/#comment-25846</link>
		<dc:creator>Doomshammer's Weblog</dc:creator>
		<pubDate>Sat, 30 Dec 2006 16:55:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/#comment-25846</guid>
		<description>&lt;strong&gt;MySQL vs. PostgreSQL benchmarks...&lt;/strong&gt;

I found an interessting article at the MySQL Performance blog, pointing me to these benchmarks:MySQL vs. PostgreSQLRDBMS on Solaris vs. LinuxIt&#039;s pretty interessting to see, that PostgreSQL is performing very well, where MySQL is suffering very quickl...</description>
		<content:encoded><![CDATA[<p><strong>MySQL vs. PostgreSQL benchmarks&#8230;</strong></p>
<p>I found an interessting article at the MySQL Performance blog, pointing me to these benchmarks:MySQL vs. PostgreSQLRDBMS on Solaris vs. LinuxIt&#8217;s pretty interessting to see, that PostgreSQL is performing very well, where MySQL is suffering very quickl&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Day</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/comment-page-1/#comment-20277</link>
		<dc:creator>James Day</dc:creator>
		<pubDate>Sat, 09 Dec 2006 07:23:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/#comment-20277</guid>
		<description>Kees, re sort_buffer_size, see http://bugs.mysql.com/bug.php?id=21727 for a particularly unpleasant case that explains what may have been happening. You may find that the fix for that improves things if you are sorting in subqueries. You&#039;ll need to get it from BK since it&#039;s not yet in any release. Since you can adjust the sort_buffer_size for each query if you want to tune things you could consider that, though it&#039;s going a bit further than most people would go.

It would be good if you said more about your software configuration. For example, Peter wrote that you&#039;re using InnoDB but I normally assume MyISAM and not knowing which engine(s) are in use can make it hard to know what the results mean, if anything. Your comment does seem to say that you&#039;re using InnoDB.</description>
		<content:encoded><![CDATA[<p>Kees, re sort_buffer_size, see <a href="http://bugs.mysql.com/bug.php?id=21727" rel="nofollow">http://bugs.mysql.com/bug.php?id=21727</a> for a particularly unpleasant case that explains what may have been happening. You may find that the fix for that improves things if you are sorting in subqueries. You&#8217;ll need to get it from BK since it&#8217;s not yet in any release. Since you can adjust the sort_buffer_size for each query if you want to tune things you could consider that, though it&#8217;s going a bit further than most people would go.</p>
<p>It would be good if you said more about your software configuration. For example, Peter wrote that you&#8217;re using InnoDB but I normally assume MyISAM and not knowing which engine(s) are in use can make it hard to know what the results mean, if anything. Your comment does seem to say that you&#8217;re using InnoDB.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/comment-page-1/#comment-19893</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Wed, 06 Dec 2006 09:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/#comment-19893</guid>
		<description>Alexey, 

It actually depends.  Sort buffer can be allocated while only couple of rows can be sorted.  The slowdown can be very well seen with subqueries which use order by where millions of sorts would happen.

Regarding sort and cache fit  this would only apply to rather large data sets - if sort set fits in 1MB and 2MB of sort buffer is allocated  still only small portion of it would be touched.   If  data is in 1MB-2MB range you would have disk based sort if your sort buffer was just 1MB which is likely worse than few key misses. 

Two more reasons why I think this is not just cache is how QuickSort works - most of the operations are done local to the small blocks, and only last pass would traverse all data set  and the fact it is mention to only apply to Solaris, not other operation systems. 

But I can be wrong about guess about mmap() in this particular case - it could be something else. Profiling could show.</description>
		<content:encoded><![CDATA[<p>Alexey, </p>
<p>It actually depends.  Sort buffer can be allocated while only couple of rows can be sorted.  The slowdown can be very well seen with subqueries which use order by where millions of sorts would happen.</p>
<p>Regarding sort and cache fit  this would only apply to rather large data sets &#8211; if sort set fits in 1MB and 2MB of sort buffer is allocated  still only small portion of it would be touched.   If  data is in 1MB-2MB range you would have disk based sort if your sort buffer was just 1MB which is likely worse than few key misses. </p>
<p>Two more reasons why I think this is not just cache is how QuickSort works &#8211; most of the operations are done local to the small blocks, and only last pass would traverse all data set  and the fact it is mention to only apply to Solaris, not other operation systems. </p>
<p>But I can be wrong about guess about mmap() in this particular case &#8211; it could be something else. Profiling could show.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexey</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/comment-page-1/#comment-19874</link>
		<dc:creator>Alexey</dc:creator>
		<pubDate>Tue, 05 Dec 2006 23:28:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/#comment-19874</guid>
		<description>I think this explanation is wrong. mmap() call takes only a few microseconds, it&#039;s insignificant comparing to time spent in sorting.
IMO the real reason is cache miss ratio. If a sort window doesn&#039;t fit your cache, a lot of key swapping operations result in cache misses. If it does, you sort a chunk of data really quick, then drop it into main memory (tmp table which isn&#039;t neccessarily written out to disk), and after all chunks are sorted, do a single pass scan.</description>
		<content:encoded><![CDATA[<p>I think this explanation is wrong. mmap() call takes only a few microseconds, it&#8217;s insignificant comparing to time spent in sorting.<br />
IMO the real reason is cache miss ratio. If a sort window doesn&#8217;t fit your cache, a lot of key swapping operations result in cache misses. If it does, you sort a chunk of data really quick, then drop it into main memory (tmp table which isn&#8217;t neccessarily written out to disk), and after all chunks are sorted, do a single pass scan.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/comment-page-1/#comment-19812</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Mon, 04 Dec 2006 17:13:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/11/30/interesting-mysql-and-postgresql-benchmarks/#comment-19812</guid>
		<description>Thanks, 

Yes I can see why changing sort_buffer can give such effect.  Larger allocation can be allocated via mmap() rather than by standard memory allocator  which may be relatively expensive as it requires OS syscall plus page table modifications.</description>
		<content:encoded><![CDATA[<p>Thanks, </p>
<p>Yes I can see why changing sort_buffer can give such effect.  Larger allocation can be allocated via mmap() rather than by standard memory allocator  which may be relatively expensive as it requires OS syscall plus page table modifications.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
