<?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: READ-COMMITED vs REPETABLE-READ in tpcc-like load</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2010/02/11/read-commited-vs-repetable-read-in-tpcc-like-load/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2010/02/11/read-commited-vs-repetable-read-in-tpcc-like-load/</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: VJ Kumar</title>
		<link>http://www.mysqlperformanceblog.com/2010/02/11/read-commited-vs-repetable-read-in-tpcc-like-load/comment-page-1/#comment-727986</link>
		<dc:creator>VJ Kumar</dc:creator>
		<pubDate>Sun, 21 Feb 2010 18:34:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=2210#comment-727986</guid>
		<description>I am not sure why there should be any difference in locking or dead-locking between RC and RR at all.

I am not familiar with InnoDB internals,  but assuming it implements traditional multi-versioning of the Oracle flavour,  there should not be any locking while providing read consistency.  E.g. in Oracle,  the only difference between the case when you have statement-level read consistency and the case when you want to ensure transaction level read consistency is how far back in time, or to what specific version of the row, you want to go: to the beginning of the statement or to the beginning of the entire transaction.  

What am I missing ?  I am sure for an InnoDB expert it should be easy to create a deterministic test case and demonstrate why there is more locking (or any locking at all) with RR vs. RC.</description>
		<content:encoded><![CDATA[<p>I am not sure why there should be any difference in locking or dead-locking between RC and RR at all.</p>
<p>I am not familiar with InnoDB internals,  but assuming it implements traditional multi-versioning of the Oracle flavour,  there should not be any locking while providing read consistency.  E.g. in Oracle,  the only difference between the case when you have statement-level read consistency and the case when you want to ensure transaction level read consistency is how far back in time, or to what specific version of the row, you want to go: to the beginning of the statement or to the beginning of the entire transaction.  </p>
<p>What am I missing ?  I am sure for an InnoDB expert it should be easy to create a deterministic test case and demonstrate why there is more locking (or any locking at all) with RR vs. RC.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay Paroline</title>
		<link>http://www.mysqlperformanceblog.com/2010/02/11/read-commited-vs-repetable-read-in-tpcc-like-load/comment-page-1/#comment-725821</link>
		<dc:creator>Jay Paroline</dc:creator>
		<pubDate>Tue, 16 Feb 2010 18:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=2210#comment-725821</guid>
		<description>We switched from REPEATABLE-READ to READ-COMMITTED because we were getting lots and lots of deadlocks all of the time. Deadlocks have pretty much gone away completely since switching to READ-COMMITTED, which seems to be in direct contradiction with your statement. Why would that be? We are using MySQL 5.0.</description>
		<content:encoded><![CDATA[<p>We switched from REPEATABLE-READ to READ-COMMITTED because we were getting lots and lots of deadlocks all of the time. Deadlocks have pretty much gone away completely since switching to READ-COMMITTED, which seems to be in direct contradiction with your statement. Why would that be? We are using MySQL 5.0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arjen Lentz</title>
		<link>http://www.mysqlperformanceblog.com/2010/02/11/read-commited-vs-repetable-read-in-tpcc-like-load/comment-page-1/#comment-725010</link>
		<dc:creator>Arjen Lentz</dc:creator>
		<pubDate>Sun, 14 Feb 2010 23:57:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=2210#comment-725010</guid>
		<description>I thought this was old news, but good to see it proven in practice. The way I learnt about it long ago is that given InnoDB&#039;s architecture, there&#039;s no advantage to lowering the isolation level. The amount of &#039;housekeeping&#039; internally (aka overhead) is virtually the same between REPEATABLE READ and READ COMMITTED.</description>
		<content:encoded><![CDATA[<p>I thought this was old news, but good to see it proven in practice. The way I learnt about it long ago is that given InnoDB&#8217;s architecture, there&#8217;s no advantage to lowering the isolation level. The amount of &#8216;housekeeping&#8217; internally (aka overhead) is virtually the same between REPEATABLE READ and READ COMMITTED.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tobi</title>
		<link>http://www.mysqlperformanceblog.com/2010/02/11/read-commited-vs-repetable-read-in-tpcc-like-load/comment-page-1/#comment-724317</link>
		<dc:creator>tobi</dc:creator>
		<pubDate>Sat, 13 Feb 2010 14:03:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=2210#comment-724317</guid>
		<description>very interesing results, never seen a benchmark quantify the cost of isolation levels. please also provide comparisions for all other levels.</description>
		<content:encoded><![CDATA[<p>very interesing results, never seen a benchmark quantify the cost of isolation levels. please also provide comparisions for all other levels.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kim</title>
		<link>http://www.mysqlperformanceblog.com/2010/02/11/read-commited-vs-repetable-read-in-tpcc-like-load/comment-page-1/#comment-723599</link>
		<dc:creator>Kim</dc:creator>
		<pubDate>Fri, 12 Feb 2010 08:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=2210#comment-723599</guid>
		<description>For some time we have used Read-Committed and has encountered alot of weird bugs with this isolation level, it seems 
that everytime the mysql team made a new feature, it wasnt tested as well with read-committed isolation level as the commonly used repeatable-read.

We have now changed isolation level to default(repeatable read). This has resulted in noticeable more deadlocks than read-committed, and so far less
bugs.

To me it seems strange that repeatable-read gives less deadlocks compared to read-committed as it is a higher isolation level and therefore must lock more.</description>
		<content:encoded><![CDATA[<p>For some time we have used Read-Committed and has encountered alot of weird bugs with this isolation level, it seems<br />
that everytime the mysql team made a new feature, it wasnt tested as well with read-committed isolation level as the commonly used repeatable-read.</p>
<p>We have now changed isolation level to default(repeatable read). This has resulted in noticeable more deadlocks than read-committed, and so far less<br />
bugs.</p>
<p>To me it seems strange that repeatable-read gives less deadlocks compared to read-committed as it is a higher isolation level and therefore must lock more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aurimas Mikalauskas</title>
		<link>http://www.mysqlperformanceblog.com/2010/02/11/read-commited-vs-repetable-read-in-tpcc-like-load/comment-page-1/#comment-806266</link>
		<dc:creator>Aurimas Mikalauskas</dc:creator>
		<pubDate>Thu, 11 Feb 2010 07:00:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=2210#comment-806266</guid>
		<description>&lt;div class=&quot;item-body&quot;&gt;&lt;p&gt;VJ Kumar, in one case I was just working on we had two transactions deleting rows using secondary key and then inserting new records with same secondary key values. By switching to read-committed we were able to avoid deadlocks because InnoDB would lock a gap after the delete in repeatable-read. In RC InnoDB almost never uses a gap locking which is a common reason for deadlocks in RR.&lt;/p&gt;
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<div class="item-body">
<p>VJ Kumar, in one case I was just working on we had two transactions deleting rows using secondary key and then inserting new records with same secondary key values. By switching to read-committed we were able to avoid deadlocks because InnoDB would lock a gap after the delete in repeatable-read. In RC InnoDB almost never uses a gap locking which is a common reason for deadlocks in RR.</p>
<div class="clear"></div>
</div>
]]></content:encoded>
	</item>
</channel>
</rss>

