
<?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: MySQL autoincrement vs Oracle sequence</title>
	<atom:link href="http://www.dooriented.com/blog/2009/05/03/mysql-autoincrement-vs-oracle-sequence/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dooriented.com/blog/2009/05/03/mysql-autoincrement-vs-oracle-sequence/</link>
	<description>Less words, more code</description>
	<lastBuildDate>Sun, 22 May 2011 13:02:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: cialis</title>
		<link>http://www.dooriented.com/blog/2009/05/03/mysql-autoincrement-vs-oracle-sequence/comment-page-1/#comment-2335</link>
		<dc:creator>cialis</dc:creator>
		<pubDate>Fri, 04 Feb 2011 02:16:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.dooriented.com/blog/?p=14#comment-2335</guid>
		<description>Your website is actually unique. Many thanks for that.</description>
		<content:encoded><![CDATA[<p>Your website is actually unique. Many thanks for that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Menini</title>
		<link>http://www.dooriented.com/blog/2009/05/03/mysql-autoincrement-vs-oracle-sequence/comment-page-1/#comment-655</link>
		<dc:creator>Gabriel Menini</dc:creator>
		<pubDate>Wed, 12 Aug 2009 16:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.dooriented.com/blog/?p=14#comment-655</guid>
		<description>Hello, there.

Your post is clear and precise.

We know Oracle is transaction oriented by default and if you issue INSERT statements like with AUTOCOMMIT set to false:

   INSERT INTO tbl_name(tbl_id, tbl_col_name)
   VALUES(sequence_name.nextval, ‘Name’);

...and then you don&#039;t COMMIT, the tbl_id column would have &quot;gaps&quot; in the next COMMIT.

I wonder what happens when you work with a transaction capable DB engine in MySQL and the AUTOINCREMENT function. 

What if you generate INSERTs and then ROLLBACK without COMMITting in MySQL + InnoDB? Does the engine generate &quot;gaps&quot; if in the meantime another user COMMITs records...?</description>
		<content:encoded><![CDATA[<p>Hello, there.</p>
<p>Your post is clear and precise.</p>
<p>We know Oracle is transaction oriented by default and if you issue INSERT statements like with AUTOCOMMIT set to false:</p>
<p>   INSERT INTO tbl_name(tbl_id, tbl_col_name)<br />
   VALUES(sequence_name.nextval, ‘Name’);</p>
<p>&#8230;and then you don&#8217;t COMMIT, the tbl_id column would have &#8220;gaps&#8221; in the next COMMIT.</p>
<p>I wonder what happens when you work with a transaction capable DB engine in MySQL and the AUTOINCREMENT function. </p>
<p>What if you generate INSERTs and then ROLLBACK without COMMITting in MySQL + InnoDB? Does the engine generate &#8220;gaps&#8221; if in the meantime another user COMMITs records&#8230;?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

